Commit 2ec4af8e by George Song

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>
parent 3ae4e2c1
...@@ -75,6 +75,9 @@ from lms.envs.common import ( ...@@ -75,6 +75,9 @@ from lms.envs.common import (
# constants for redirects app # constants for redirects app
REDIRECT_CACHE_TIMEOUT, REDIRECT_CACHE_TIMEOUT,
REDIRECT_CACHE_KEY_PREFIX, REDIRECT_CACHE_KEY_PREFIX,
# django-debug-toolbar
DEBUG_TOOLBAR_PATCH_SETTINGS,
) )
from path import Path as path from path import Path as path
from warnings import simplefilter from warnings import simplefilter
...@@ -708,15 +711,6 @@ REQUIRE_EXCLUDE = ("build.txt",) ...@@ -708,15 +711,6 @@ REQUIRE_EXCLUDE = ("build.txt",)
# returns a list with the command arguments to execute. # returns a list with the command arguments to execute.
REQUIRE_ENVIRONMENT = "node" 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 ###################################### ################################# CELERY ######################################
# Message configuration # Message configuration
......
...@@ -1710,6 +1710,15 @@ REQUIRE_JS_PATH_OVERRIDES = { ...@@ -1710,6 +1710,15 @@ REQUIRE_JS_PATH_OVERRIDES = {
'edxicons': 'edx-pattern-library/js/edx-icons.js', 'edxicons': 'edx-pattern-library/js/edx-icons.js',
'draggabilly': 'js/vendor/draggabilly.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 ######################################
# Celery's task autodiscovery won't find tasks nested in a tasks package. # Celery's task autodiscovery won't find tasks nested in a tasks package.
......
...@@ -138,7 +138,7 @@ ipaddr==2.1.11 ...@@ -138,7 +138,7 @@ ipaddr==2.1.11
django-cors-headers==1.1.0 django-cors-headers==1.1.0
# Debug toolbar # Debug toolbar
django_debug_toolbar==1.3.2 django_debug_toolbar==1.5
# Used for testing # Used for testing
before_after==0.1.3 before_after==0.1.3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment