From 804dc0fb961453e0eccca1164f04fbaaba259c9c Mon Sep 17 00:00:00 2001 From: Evarin Date: Mon, 14 Jan 2019 23:03:15 +0100 Subject: [PATCH] Toggle debug toolbar setting --- experiENS/settings_dev.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/experiENS/settings_dev.py b/experiENS/settings_dev.py index c9c9460..2ad8463 100644 --- a/experiENS/settings_dev.py +++ b/experiENS/settings_dev.py @@ -11,15 +11,16 @@ DATABASES = { } } -""" -INSTALLED_APPS += ( - 'debug_toolbar', -) +USE_DEBUG_TOOLBAR = True -MIDDLEWARE_CLASSES = ( - 'debug_toolbar.middleware.DebugToolbarMiddleware', -) + MIDDLEWARE_CLASSES -""" +if USE_DEBUG_TOOLBAR: + INSTALLED_APPS += [ + 'debug_toolbar', + ] + + MIDDLEWARE_CLASSES = ( + 'debug_toolbar.middleware.DebugToolbarMiddleware', + ) + MIDDLEWARE_CLASSES INTERNAL_IPS = ['127.0.0.1']