From 9e8efcd2189fcbd33c7807b00e2e45aea2cffeec Mon Sep 17 00:00:00 2001 From: Daniel Greenfeld Date: Sat, 6 Jul 2013 11:08:11 +0200 Subject: [PATCH] Add django-debug-toolbar to example2 --- example2/example2/settings.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/example2/example2/settings.py b/example2/example2/settings.py index 3b0a275..8ef70aa 100644 --- a/example2/example2/settings.py +++ b/example2/example2/settings.py @@ -155,3 +155,23 @@ LOGGING = { ADMIN2_THEME_DIRECTORY = "admin2/bootstrap/" + +########## TOOLBAR CONFIGURATION +# See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation +INSTALLED_APPS += ( + 'debug_toolbar', +) + +# See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation +INTERNAL_IPS = ('127.0.0.1',) + +# See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation +MIDDLEWARE_CLASSES += ( + 'debug_toolbar.middleware.DebugToolbarMiddleware', +) + +DEBUG_TOOLBAR_CONFIG = { + 'INTERCEPT_REDIRECTS': False, + 'SHOW_TEMPLATE_CONTEXT': True, +} +########## END TOOLBAR CONFIGURATION