Toggle debug toolbar setting

This commit is contained in:
Evarin 2019-01-14 23:03:15 +01:00
parent 092c373f2a
commit 804dc0fb96

View file

@ -11,15 +11,16 @@ DATABASES = {
} }
} }
""" USE_DEBUG_TOOLBAR = True
INSTALLED_APPS += (
if USE_DEBUG_TOOLBAR:
INSTALLED_APPS += [
'debug_toolbar', 'debug_toolbar',
) ]
MIDDLEWARE_CLASSES = ( MIDDLEWARE_CLASSES = (
'debug_toolbar.middleware.DebugToolbarMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware',
) + MIDDLEWARE_CLASSES ) + MIDDLEWARE_CLASSES
"""
INTERNAL_IPS = ['127.0.0.1'] INTERNAL_IPS = ['127.0.0.1']