aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/toolbar/loader.py
diff options
context:
space:
mode:
authorMatt George2008-09-30 22:18:58 -0500
committerMatt George2008-09-30 22:18:58 -0500
commitbf6d1596e621c2e33468d2a36bb54f68c1baa205 (patch)
treeb3ba07823903beec0604d423c82abc7a9db98edc /debug_toolbar/toolbar/loader.py
parent991969f4ab22fbf73bea2ec8d9afeba1962fa2a5 (diff)
parent70278e8054dd0b0abb466d2fe7a043a10e871a37 (diff)
downloaddjango-debug-toolbar-bf6d1596e621c2e33468d2a36bb54f68c1baa205.tar.bz2
Merge branch 'master' into session_panel
Diffstat (limited to 'debug_toolbar/toolbar/loader.py')
-rw-r--r--debug_toolbar/toolbar/loader.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/debug_toolbar/toolbar/loader.py b/debug_toolbar/toolbar/loader.py
index ce17080..29ab46e 100644
--- a/debug_toolbar/toolbar/loader.py
+++ b/debug_toolbar/toolbar/loader.py
@@ -8,6 +8,9 @@ class DebugToolbar(object):
def __init__(self, request):
self.request = request
self.panels = []
+ self.config = {
+ 'INTERCEPT_REDIRECTS': True,
+ }
# Override this tuple by copying to settings.py as `DEBUG_TOOLBAR_PANELS`
self.default_panels = (
'debug_toolbar.panels.version.VersionDebugPanel',
@@ -31,6 +34,9 @@ class DebugToolbar(object):
# Check if settings has a DEBUG_TOOLBAR_PANELS, otherwise use default
if hasattr(settings, 'DEBUG_TOOLBAR_PANELS'):
self.default_panels = settings.DEBUG_TOOLBAR_PANELS
+ # Check if settings has a DEBUG_TOOLBAR_CONFIG and updated config
+ if hasattr(settings, 'DEBUG_TOOLBAR_CONFIG'):
+ self.config.update(settings.DEBUG_TOOLBAR_CONFIG)
for panel_path in self.default_panels:
try: