Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
21
Issues
21
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
go
Commits
414a51e3
Commit
414a51e3
authored
Nov 18, 2016
by
David Haynes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
go/settings/urls.py
go/settings/urls.py
+6
-0
No files found.
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