aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/utils/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'debug_toolbar/utils/settings.py')
-rw-r--r--debug_toolbar/utils/settings.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/debug_toolbar/utils/settings.py b/debug_toolbar/utils/settings.py
new file mode 100644
index 0000000..482781b
--- /dev/null
+++ b/debug_toolbar/utils/settings.py
@@ -0,0 +1,27 @@
+from __future__ import unicode_literals
+
+from django.conf import settings
+from django.utils import six
+
+
+CONFIG_DEFAULTS = {
+ 'INTERCEPT_REDIRECTS': False,
+ 'SHOW_TOOLBAR_CALLBACK': None,
+ 'EXTRA_SIGNALS': [],
+ 'HIDE_DJANGO_SQL': True,
+ 'SHOW_TEMPLATE_CONTEXT': True,
+ 'TAG': 'body',
+ 'ENABLE_STACKTRACES': True,
+ 'HIDDEN_STACKTRACE_MODULES': (
+ 'socketserver' if six.PY3 else 'SocketServer',
+ 'threading',
+ 'wsgiref',
+ 'debug_toolbar',
+ ),
+ 'ROOT_TAG_ATTRS': '',
+}
+
+
+CONFIG = {}
+CONFIG.update(CONFIG_DEFAULTS)
+CONFIG.update(getattr(settings, 'DEBUG_TOOLBAR_CONFIG', {}))