From 72a8a78366b7f5e5ee734dabc86a32b5801dd486 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Mon, 27 Jul 2015 20:53:08 -0300 Subject: [PATCH] Install debug toolbar and turn template debug on --- sapl/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sapl/settings.py b/sapl/settings.py index 8e3d80061..11a44cfa6 100644 --- a/sapl/settings.py +++ b/sapl/settings.py @@ -22,6 +22,7 @@ SECRET_KEY = '!9g1-#la+#(oft(v-y1qhy$jk-2$24pdk69#b_jfqyv!*%a_)t' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True +TEMPLATE_DEBUG = DEBUG ALLOWED_HOSTS = ['*'] @@ -54,6 +55,8 @@ INSTALLED_APPS = ( 'crispy_forms', 'crispy_forms_foundation', ) +if DEBUG: + INSTALLED_APPS += ('debug_toolbar',) MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', @@ -81,6 +84,7 @@ TEMPLATES = [ 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], + 'debug': DEBUG }, }, ]