From e2a2a320d912e3128f27fa3cc03af1235e7d46c7 Mon Sep 17 00:00:00 2001 From: Zak Timson Date: Fri, 18 Aug 2017 21:24:33 -0400 Subject: [PATCH] Removed static urls --- OACPL/urls.py | 10 +++++----- main/templates/index.html | 2 +- templates/base.html | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/OACPL/urls.py b/OACPL/urls.py index eb98f60..9b79a3d 100644 --- a/OACPL/urls.py +++ b/OACPL/urls.py @@ -15,9 +15,9 @@ def protected_serve(request, path, document_root=None, show_indexes=False): return serve(request, path, document_root, show_indexes) urlpatterns = [ - url(r'^$', main.views.index), - url(r'^admin/', admin.site.urls), - url(r'^members/(?P\d+)', charter_members.views.index), - url(r'^media/secure/(?P.*)$', protected_serve, {'document_root': os.path.join(settings.MEDIA_ROOT, 'secure')}), - url(r'^media/(?P.*)$', serve, {'document_root': settings.MEDIA_ROOT}) + url(r'^$', main.views.index, name='home'), + url(r'^admin/', admin.site.urls, name='admin'), + url(r'^attorney/(?P\d+)', charter_members.views.index, name='attorney'), + url(r'^media/secure/(?P.*)$', protected_serve, {'document_root': os.path.join(settings.MEDIA_ROOT, 'secure')}, name='secure media'), + url(r'^media/(?P.*)$', serve, {'document_root': settings.MEDIA_ROOT}, name='media') ] diff --git a/main/templates/index.html b/main/templates/index.html index 59d95bd..13046d5 100644 --- a/main/templates/index.html +++ b/main/templates/index.html @@ -80,7 +80,7 @@