Don't load development apps if they are already loaded.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-10-12 03:10:56 -04:00
parent 38c84de708
commit eb357b18fc
3 changed files with 14 additions and 7 deletions
+4 -3
View File
@@ -6,9 +6,10 @@ from .development import * # NOQA
# see https://github.com/django-debug-toolbar/django-debug-toolbar/issues/524
DEBUG_TOOLBAR_PATCH_SETTINGS = False
INSTALLED_APPS += (
'debug_toolbar',
)
if 'debug_toolbar' not in INSTALLED_APPS:
INSTALLED_APPS += (
'debug_toolbar',
)
MIDDLEWARE_CLASSES = (
'debug_toolbar.middleware.DebugToolbarMiddleware',