Commit 414a51e3 authored by David Haynes's avatar David Haynes

Comments in urls.py (Closes #41)

- comments were already here so..
parent 2df5a448
Pipeline #495 failed with stage
in 5 minutes and 51 seconds
......@@ -8,11 +8,15 @@ from django.views.generic import TemplateView
# App Imports
import go.views
# This function attempts to import an admin module in each installed
# application. Such modules are expected to register models with the admin.
admin.autodiscover()
# Handle 404 and 500 errors with custom pages
handle404 = TemplateView.as_view(template_name="admin/404.html")
handle500 = TemplateView.as_view(template_name="admin/500.html")
# Main list of project URL's
urlpatterns = [
# / - Homepage url.
url(r'^$', go.views.index, name='index'),
......@@ -41,6 +45,8 @@ urlpatterns = [
# /useradmin - user approval interface
url(r'^useradmin/?$', go.views.useradmin, name='useradmin'),
]
# Handle authentication pages
if settings.AUTH_MODE.lower() == "ldap":
urlpatterns += [
# Auth pages
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment