aboutsummaryrefslogtreecommitdiffstats
path: root/README.rst
diff options
context:
space:
mode:
authorColin Howe2011-10-07 08:09:31 +0100
committerColin Howe2011-10-07 08:09:31 +0100
commit295f6f8f9a269cc547054f7094473b4388d58b16 (patch)
tree726004a7b3528fecc83b86344e7c21d5e2ce6c7b /README.rst
parent9067568b0bbf0c39322f5b761b05463685355b4f (diff)
downloaddjango-debug-toolbar-295f6f8f9a269cc547054f7094473b4388d58b16.tar.bz2
Make stacktraces configurable
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index 1ea9d25..5e4ab64 100644
--- a/README.rst
+++ b/README.rst
@@ -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`