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
e0edc51e
Commit
e0edc51e
authored
Jul 29, 2015
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9120 from edx/ned/fix-djdt-circular-imports
Fix Django Debug Toolbar circular imports
parents
e7933515
7a7a867e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletions
+20
-1
cms/envs/common.py
+9
-0
cms/urls.py
+5
-0
lms/urls.py
+6
-1
No files found.
cms/envs/common.py
View file @
e0edc51e
...
...
@@ -595,6 +595,15 @@ REQUIRE_EXCLUDE = ("build.txt",)
# It can also be a path to a custom class that subclasses require.environments.Environment and defines some "args" function that returns a list with the command arguments to execute.
REQUIRE_ENVIRONMENT
=
"node"
########################## DJANGO DEBUG TOOLBAR ###############################
# We don't enable Django Debug Toolbar universally, but whenever we do, we want
# to avoid patching settings. Patched settings can cause circular import
# problems: http://django-debug-toolbar.readthedocs.org/en/1.0/installation.html#explicit-setup
DEBUG_TOOLBAR_PATCH_SETTINGS
=
False
################################# TENDER ######################################
# If you want to enable Tender integration (http://tenderapp.com/),
...
...
cms/urls.py
View file @
e0edc51e
...
...
@@ -190,6 +190,11 @@ if settings.DEBUG:
except
ImportError
:
pass
import
debug_toolbar
urlpatterns
+=
(
url
(
r'^__debug__/'
,
include
(
debug_toolbar
.
urls
)),
)
# Custom error pages
# pylint: disable=invalid-name
handler404
=
'contentstore.views.render_404'
...
...
lms/urls.py
View file @
e0edc51e
...
...
@@ -708,7 +708,12 @@ 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'
),
#Custom error pages
import
debug_toolbar
urlpatterns
+=
(
url
(
r'^__debug__/'
,
include
(
debug_toolbar
.
urls
)),
)
# Custom error pages
handler404
=
'static_template_view.views.render_404'
handler500
=
'static_template_view.views.render_500'
...
...
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