From 005f67ebbc37dca871fc211e1fc46b9299e4787b Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Tue, 30 Sep 2008 13:22:17 -0700 Subject: Adding redirect interception to the middleware to be able to view debug info before being redirected to a new page. Thanks to [530] in IRC for the idea. Coming soon will be a way to optionally disable this. --- debug_toolbar/templates/debug_toolbar/redirect.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 debug_toolbar/templates/debug_toolbar/redirect.html (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/redirect.html b/debug_toolbar/templates/debug_toolbar/redirect.html new file mode 100644 index 0000000..b61286e --- /dev/null +++ b/debug_toolbar/templates/debug_toolbar/redirect.html @@ -0,0 +1,14 @@ + +
+ + +Location: {{ redirect_to }}
+
+ The Django Debug Toolbar has intercepted a redirect to the above URL for
+ debug viewing purposes. You can click the above link to continue with the
+ redirect as normal. If you'd like to disable this feature, set the config
+ property INTERCEPT_REDIRECTS to False.
+