Don't enable DDT during tests
This commit is contained in:
parent
f427fc7bb5
commit
26d9e256ea
1 changed files with 9 additions and 8 deletions
|
@ -320,6 +320,7 @@ if DEBUG:
|
||||||
INSTALLED_APPS.append("django_browser_reload")
|
INSTALLED_APPS.append("django_browser_reload")
|
||||||
MIDDLEWARE.append("django_browser_reload.middleware.BrowserReloadMiddleware")
|
MIDDLEWARE.append("django_browser_reload.middleware.BrowserReloadMiddleware")
|
||||||
|
|
||||||
|
if not TEST:
|
||||||
# Add django-debug-toolbar
|
# Add django-debug-toolbar
|
||||||
INSTALLED_APPS.append("debug_toolbar")
|
INSTALLED_APPS.append("debug_toolbar")
|
||||||
MIDDLEWARE.append("debug_toolbar.middleware.DebugToolbarMiddleware")
|
MIDDLEWARE.append("debug_toolbar.middleware.DebugToolbarMiddleware")
|
||||||
|
|
Loading…
Reference in a new issue