Fix : side effects in local.py

This commit is contained in:
Ludovic Stephan 2020-11-16 19:07:10 +01:00
parent d3ec952de8
commit 3fee57061d

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}