Refactor the initial setting bootstrap code

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-11-14 00:40:05 -04:00
parent 4a1607afad
commit c3793699c5
11 changed files with 420 additions and 225 deletions
+3 -3
View File
@@ -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