Fix : side effects in local.py

This commit is contained in:
Ludovic Stephan 2020-11-16 19:07:10 +01:00 committed by Tom Hubrecht
parent 783a76dc1c
commit 97760cb49d

View file

@ -57,6 +57,6 @@ def show_toolbar(request):
if not TESTING:
INSTALLED_APPS += ["debug_toolbar"]
INSTALLED_APPS = INSTALLED_APPS + ["debug_toolbar"]
MIDDLEWARE = ["debug_toolbar.middleware.DebugToolbarMiddleware"] + MIDDLEWARE
DEBUG_TOOLBAR_CONFIG = {"SHOW_TOOLBAR_CALLBACK": show_toolbar}