aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.rst11
-rw-r--r--debug_toolbar/toolbar/loader.py2
2 files changed, 6 insertions, 7 deletions
diff --git a/README.rst b/README.rst
index 9a4bfef..32cda1d 100644
--- a/README.rst
+++ b/README.rst
@@ -129,11 +129,10 @@ The debug toolbar has two settings that can be set in ``settings.py``:
* ``INTERCEPT_REDIRECTS``
- If set to True (default), the debug toolbar will
- show an intermediate page upon redirect so you can view any debug
- information prior to redirecting. This page will provide a link to the
- redirect destination you can follow when ready. If set to False, redirects
- will proceed as normal.
+ If set to True, the debug toolbar will show an intermediate page upon
+ redirect so you can view any debug information prior to redirecting. This
+ page will provide a link to the redirect destination you can follow when
+ ready. If set to False (default), redirects will proceed as normal.
* ``SHOW_TOOLBAR_CALLBACK``
@@ -178,7 +177,7 @@ The debug toolbar has two settings that can be set in ``settings.py``:
return True # Always show toolbar, for example purposes only.
DEBUG_TOOLBAR_CONFIG = {
- 'INTERCEPT_REDIRECTS': False,
+ 'INTERCEPT_REDIRECTS': True,
'SHOW_TOOLBAR_CALLBACK': custom_show_toolbar,
'EXTRA_SIGNALS': ['myproject.signals.MySignal'],
'HIDE_DJANGO_SQL': False,
diff --git a/debug_toolbar/toolbar/loader.py b/debug_toolbar/toolbar/loader.py
index ee1de67..5b55149 100644
--- a/debug_toolbar/toolbar/loader.py
+++ b/debug_toolbar/toolbar/loader.py
@@ -17,7 +17,7 @@ class DebugToolbar(object):
self._panels = SortedDict()
base_url = self.request.META.get('SCRIPT_NAME', '')
self.config = {
- 'INTERCEPT_REDIRECTS': True,
+ 'INTERCEPT_REDIRECTS': False,
'MEDIA_URL': '%s/__debug__/m/' % base_url
}
# Check if settings has a DEBUG_TOOLBAR_CONFIG and updated config