removed django debug toolbar,because it makes wagtail slow
This commit is contained in:
parent
fe3d5443a8
commit
d4e6778259
|
|
@ -501,14 +501,14 @@ if DJANGO_DEV_MODE == "development":
|
|||
# django-debug-toolbar
|
||||
# ------------------------------------------------------------------------------
|
||||
# https://django-debug-toolbar.readthedocs.io/en/latest/installation.html#prerequisites
|
||||
INSTALLED_APPS += ["debug_toolbar"] # noqa F405
|
||||
#INSTALLED_APPS += ["debug_toolbar"] # noqa F405
|
||||
# https://django-debug-toolbar.readthedocs.io/en/latest/installation.html#middleware
|
||||
MIDDLEWARE += ["debug_toolbar.middleware.DebugToolbarMiddleware"] # noqa F405
|
||||
# MIDDLEWARE += ["debug_toolbar.middleware.DebugToolbarMiddleware"] # noqa F405
|
||||
# https://django-debug-toolbar.readthedocs.io/en/latest/configuration.html#debug-toolbar-config
|
||||
DEBUG_TOOLBAR_CONFIG = {
|
||||
"DISABLE_PANELS": ["debug_toolbar.panels.redirects.RedirectsPanel"],
|
||||
"SHOW_TEMPLATE_CONTEXT": True,
|
||||
}
|
||||
# DEBUG_TOOLBAR_CONFIG = {
|
||||
# "DISABLE_PANELS": ["debug_toolbar.panels.redirects.RedirectsPanel"],
|
||||
# "SHOW_TEMPLATE_CONTEXT": True,
|
||||
# }
|
||||
# https://django-debug-toolbar.readthedocs.io/en/latest/installation.html#internal-ips
|
||||
INTERNAL_IPS = ["127.0.0.1", "10.0.2.2"]
|
||||
if env.bool("VBV_DJANGO_LOCAL_DOCKER", False):
|
||||
|
|
|
|||
Loading…
Reference in New Issue