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 @@