aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAymeric Augustin2013-11-15 20:17:30 +0100
committerAymeric Augustin2013-11-15 20:33:51 +0100
commitb6e2027d1b2e481c2595d2a85042c27202818feb (patch)
treea6b824eea60aba7b6ec479968385240232e429d5 /docs
parent70d3aa1b8c12d614f2ca1b1b550bb605d8c8a506 (diff)
downloaddjango-debug-toolbar-b6e2027d1b2e481c2595d2a85042c27202818feb.tar.bz2
Disable the toolbar entirely on AJAX requests.
Diffstat (limited to 'docs')
-rw-r--r--docs/configuration.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/configuration.rst b/docs/configuration.rst
index d8cf9a9..df203cb 100644
--- a/docs/configuration.rst
+++ b/docs/configuration.rst
@@ -84,10 +84,11 @@ Toolbar options
If set to ``None``, the debug toolbar middleware will use its built-in
``show_toolbar`` method for determining whether the toolbar should show or
- not. The default checks are that ``DEBUG`` must be set to ``True`` and the
- IP of the request must be in ``INTERNAL_IPS``. You can provide your own
- method for displaying the toolbar which contains your custom logic. This
- method should return ``True`` or ``False``.
+ not. The default checks are that ``DEBUG`` must be set to ``True``, the IP
+ of the request must be in ``INTERNAL_IPS``, and the request must no be an
+ AJAX request. You can provide your own method for displaying the toolbar
+ which contains your custom logic. This method should return ``True`` or
+ ``False``.
* ``TAG``