Refactor the initial setting bootstrap code
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -6,11 +6,11 @@ from .development import * # NOQA
|
||||
# see https://github.com/django-debug-toolbar/django-debug-toolbar/issues/524
|
||||
DEBUG_TOOLBAR_PATCH_SETTINGS = False
|
||||
|
||||
if 'debug_toolbar' not in INSTALLED_APPS:
|
||||
INSTALLED_APPS += (
|
||||
if 'debug_toolbar' not in INSTALLED_APPS: # NOQA: F405
|
||||
INSTALLED_APPS += ( # NOQA: F405
|
||||
'debug_toolbar',
|
||||
)
|
||||
|
||||
MIDDLEWARE_CLASSES = (
|
||||
'debug_toolbar.middleware.DebugToolbarMiddleware',
|
||||
) + MIDDLEWARE_CLASSES
|
||||
) + MIDDLEWARE_CLASSES # NOQA: F405
|
||||
|
||||
Reference in New Issue
Block a user