Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
414a51e3
Commit
414a51e3
authored
Nov 18, 2016
by
David Haynes
Browse files
Comments in urls.py (Closes
#41
)
- comments were already here so..
parent
2df5a448
Pipeline
#495
failed with stage
in 5 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
go/settings/urls.py
View file @
414a51e3
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment