diff options
| author | Simon Meers | 2013-06-24 20:47:18 +1000 |
|---|---|---|
| committer | Aymeric Augustin | 2013-10-21 15:39:25 +0200 |
| commit | 5b1fd5a96eca2522b173ea6266ecef026fab78c6 (patch) | |
| tree | c5c42ea16f2e46aa9e5610f041efd41760adf867 /README.rst | |
| parent | a705563dddb14bd0de2a904d5aca492274229942 (diff) | |
| download | django-debug-toolbar-5b1fd5a96eca2522b173ea6266ecef026fab78c6.tar.bz2 | |
Added configurable HIDDEN_STACKTRACE_MODULES.
Diffstat (limited to 'README.rst')
| -rw-r--r-- | README.rst | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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`` |
