Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
8477146c
Commit
8477146c
authored
Aug 04, 2015
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9189 from edx/ned/fix-django-debug-toolbar-settings
We should only add the DjDT urls if it is enabled.
parents
009e8a10
8476baf4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
cms/urls.py
+1
-0
lms/urls.py
+1
-0
No files found.
cms/urls.py
View file @
8477146c
...
...
@@ -190,6 +190,7 @@ if settings.DEBUG:
except
ImportError
:
pass
if
'debug_toolbar'
in
settings
.
INSTALLED_APPS
:
import
debug_toolbar
urlpatterns
+=
(
url
(
r'^__debug__/'
,
include
(
debug_toolbar
.
urls
)),
...
...
lms/urls.py
View file @
8477146c
...
...
@@ -708,6 +708,7 @@ if settings.DEBUG:
# in debug mode, allow any template to be rendered (most useful for UX reference templates)
urlpatterns
+=
url
(
r'^template/(?P<template>.+)$'
,
'debug.views.show_reference_template'
),
if
'debug_toolbar'
in
settings
.
INSTALLED_APPS
:
import
debug_toolbar
urlpatterns
+=
(
url
(
r'^__debug__/'
,
include
(
debug_toolbar
.
urls
)),
...
...
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