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,14 +320,15 @@ 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")
|
||||||
|
|
||||||
# Add django-debug-toolbar
|
if not TEST:
|
||||||
INSTALLED_APPS.append("debug_toolbar")
|
# Add django-debug-toolbar
|
||||||
MIDDLEWARE.append("debug_toolbar.middleware.DebugToolbarMiddleware")
|
INSTALLED_APPS.append("debug_toolbar")
|
||||||
DEBUG_TOOLBAR_CONFIG = {
|
MIDDLEWARE.append("debug_toolbar.middleware.DebugToolbarMiddleware")
|
||||||
"SHOW_TOOLBAR_CALLBACK": "website.common.utils.show_toolbar_callback",
|
DEBUG_TOOLBAR_CONFIG = {
|
||||||
"RESULTS_CACHE_SIZE": 5,
|
"SHOW_TOOLBAR_CALLBACK": "website.common.utils.show_toolbar_callback",
|
||||||
"SHOW_COLLAPSED": True,
|
"RESULTS_CACHE_SIZE": 5,
|
||||||
}
|
"SHOW_COLLAPSED": True,
|
||||||
|
}
|
||||||
|
|
||||||
# Add Wagtail styleguide
|
# Add Wagtail styleguide
|
||||||
INSTALLED_APPS.append("wagtail.contrib.styleguide")
|
INSTALLED_APPS.append("wagtail.contrib.styleguide")
|
||||||
|
|
Loading…
Reference in a new issue