From c344d7627e2885ca32bc0c65c369a610f9884146 Mon Sep 17 00:00:00 2001 From: Dylan Hillerbrand Date: Mon, 23 Sep 2024 12:20:02 -0400 Subject: [PATCH] Update debug_settings.py to disable debug panels by default --- app/public/cantusdata/debug_settings.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/public/cantusdata/debug_settings.py b/app/public/cantusdata/debug_settings.py index c3a7c475..96fdc1bc 100644 --- a/app/public/cantusdata/debug_settings.py +++ b/app/public/cantusdata/debug_settings.py @@ -7,6 +7,22 @@ DEBUG = is_development DEBUG_TOOLBAR_CONFIG = { + "DISABLE_PANELS": { + "debug_toolbar.panels.history.HistoryPanel", + "debug_toolbar.panels.versions.VersionsPanel", + "debug_toolbar.panels.timer.TimerPanel", + "debug_toolbar.panels.settings.SettingsPanel", + "debug_toolbar.panels.headers.HeadersPanel", + "debug_toolbar.panels.request.RequestPanel", + "debug_toolbar.panels.sql.SQLPanel", + "debug_toolbar.panels.staticfiles.StaticFilesPanel", + "debug_toolbar.panels.templates.TemplatesPanel", + "debug_toolbar.panels.cache.CachePanel", + "debug_toolbar.panels.signals.SignalsPanel", + "debug_toolbar.panels.logging.LoggingPanel", + "debug_toolbar.panels.redirects.RedirectsPanel", + "debug_toolbar.panels.profiling.ProfilingPanel", + }, "SHOW_TOOLBAR_CALLBACK": lambda request: ( False if request.headers.get("x-requested-with") == "XMLHttpRequest" else True ),