Update to latest django-debug-toolbar

Also make sure we set the recommended settings according to
<https://django-debug-toolbar.readthedocs.io/en/stable/installation.html#explicit-setup>
This commit is contained in:
George Song
2016-08-30 10:50:27 -07:00
parent c7df4ed072
commit 194ace0ff0
3 changed files with 13 additions and 10 deletions

View File

@@ -77,6 +77,9 @@ from lms.envs.common import (
REDIRECT_CACHE_KEY_PREFIX,
JWT_AUTH,
# django-debug-toolbar
DEBUG_TOOLBAR_PATCH_SETTINGS,
)
from path import Path as path
from warnings import simplefilter
@@ -710,15 +713,6 @@ REQUIRE_EXCLUDE = ("build.txt",)
# 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
################################# CELERY ######################################
# Message configuration

View File

@@ -1706,6 +1706,15 @@ REQUIRE_JS_PATH_OVERRIDES = {
'js/groups/views/cohorts_dashboard_factory': 'js/groups/views/cohorts_dashboard_factory.js',
'draggabilly': 'js/vendor/draggabilly.js'
}
########################## 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
################################# CELERY ######################################
# Celery's task autodiscovery won't find tasks nested in a tasks package.

View File

@@ -138,7 +138,7 @@ ipaddr==2.1.11
django-cors-headers==1.1.0
# Debug toolbar
django_debug_toolbar==1.3.2
django_debug_toolbar==1.5
# Used for testing
before_after==0.1.3