diff options
| author | Colin Howe | 2011-10-07 08:09:31 +0100 |
|---|---|---|
| committer | Colin Howe | 2011-10-07 08:09:31 +0100 |
| commit | 295f6f8f9a269cc547054f7094473b4388d58b16 (patch) | |
| tree | 726004a7b3528fecc83b86344e7c21d5e2ce6c7b /README.rst | |
| parent | 9067568b0bbf0c39322f5b761b05463685355b4f (diff) | |
| download | django-debug-toolbar-295f6f8f9a269cc547054f7094473b4388d58b16.tar.bz2 | |
Make stacktraces configurable
Diffstat (limited to 'README.rst')
| -rw-r--r-- | README.rst | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -124,6 +124,10 @@ The debug toolbar has two settings that can be set in `settings.py`: * `TAG`: If set, this will be the tag to which debug_toolbar will attach the debug toolbar. Defaults to 'body'. + * `ENABLE_STACKTRACES`: If set, this will show stacktraces for SQL queries. + Enabling stacktraces can increase the CPU time used when executing + queries. Defaults to True. + Example configuration:: def custom_show_toolbar(request): @@ -135,6 +139,7 @@ The debug toolbar has two settings that can be set in `settings.py`: 'EXTRA_SIGNALS': ['myproject.signals.MySignal'], 'HIDE_DJANGO_SQL': False, 'TAG': 'div', + 'ENABLE_STACKTRACES' : True, } `debugsqlshell` |
