aboutsummaryrefslogtreecommitdiffstats
path: root/README.rst
diff options
context:
space:
mode:
authorSimon Meers2013-06-24 20:47:18 +1000
committerAymeric Augustin2013-10-21 15:39:25 +0200
commit5b1fd5a96eca2522b173ea6266ecef026fab78c6 (patch)
treec5c42ea16f2e46aa9e5610f041efd41760adf867 /README.rst
parenta705563dddb14bd0de2a904d5aca492274229942 (diff)
downloaddjango-debug-toolbar-5b1fd5a96eca2522b173ea6266ecef026fab78c6.tar.bz2
Added configurable HIDDEN_STACKTRACE_MODULES.
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index 32cda1d..1d693b2 100644
--- a/README.rst
+++ b/README.rst
@@ -171,6 +171,15 @@ The debug toolbar has two settings that can be set in ``settings.py``:
and cache calls. Enabling stacktraces can increase the CPU time used when
executing queries. Defaults to True.
+ * ``HIDDEN_STACKTRACE_MODULES``
+
+ Useful for eliminating server-related entries which can result
+ in enormous DOM structures and toolbar rendering delays.
+ Default: ``('socketserver', 'threading', 'wsgiref', 'debug_toolbar')``.
+
+ (The first value is ``socketserver`` on Python 3 and ``SocketServer`` on
+ Python 2.)
+
Example configuration::
def custom_show_toolbar(request):
@@ -183,6 +192,7 @@ The debug toolbar has two settings that can be set in ``settings.py``:
'HIDE_DJANGO_SQL': False,
'TAG': 'div',
'ENABLE_STACKTRACES' : True,
+ 'HIDDEN_STACKTRACE_MODULES': ('gunicorn', 'newrelic'),
}
``debugsqlshell``