inicial
This commit is contained in:
22
ciec/urls.py
Executable file
22
ciec/urls.py
Executable file
@@ -0,0 +1,22 @@
|
||||
from django.contrib import admin
|
||||
#from django.conf.urls import url
|
||||
from django.urls import path, include, re_path
|
||||
from django.conf import settings
|
||||
from catalogos.views import home
|
||||
#from django.utils.functional import curry
|
||||
from django.views.defaults import server_error, page_not_found
|
||||
from django.conf.urls.static import static
|
||||
from functools import partial as curry
|
||||
|
||||
admin.site.site_header = "CIEC Cuotas, Ingresos y Egresos Condominales"
|
||||
admin.site.site_title = "CIEC"
|
||||
admin.site.index_title = "Administración"
|
||||
|
||||
handler500 = curry(server_error, template_name='admin/500.html')
|
||||
handler404 = curry(page_not_found, template_name='admin/404.html')
|
||||
|
||||
urlpatterns = [
|
||||
re_path(r'^$', home, name='home'),
|
||||
re_path(r'^5up3rc4l1fr4ct1c03sp1r4l1d0s0/', admin.site.urls, name = 'admin'),
|
||||
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||
|
||||
Reference in New Issue
Block a user