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 ),