From d4e677825949652ac67069b2927f5b11a9a70d69 Mon Sep 17 00:00:00 2001 From: Lorenz Padberg Date: Tue, 3 May 2022 16:29:25 +0200 Subject: [PATCH] removed django debug toolbar,because it makes wagtail slow --- server/config/settings/base.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server/config/settings/base.py b/server/config/settings/base.py index 5ef4d907..3273a0ab 100644 --- a/server/config/settings/base.py +++ b/server/config/settings/base.py @@ -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):