From b530b2b3b5bbe9ecf51f2833d97b55ca2a8c656a Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 25 May 2024 17:15:24 +0100 Subject: [PATCH] Disable some DDT panels --- yamdl_playground/settings.py | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/yamdl_playground/settings.py b/yamdl_playground/settings.py index f4c4e06..64bf304 100644 --- a/yamdl_playground/settings.py +++ b/yamdl_playground/settings.py @@ -184,10 +184,6 @@ LOGGING = { }, } -DEBUG_TOOLBAR_CONFIG = { - "SHOW_TOOLBAR_CALLBACK": "yamdl_playground.core.utils.show_debug_toolbar" -} - if "ENABLE_ADMIN" in os.environ: INSTALLED_APPS.extend([ @@ -217,3 +213,23 @@ if "ENABLE_ADMIN" in os.environ: if "ENABLE_DDT" in os.environ: INSTALLED_APPS.append("debug_toolbar") MIDDLEWARE.append("debug_toolbar.middleware.DebugToolbarMiddleware") + + DEBUG_TOOLBAR_CONFIG = { + "SHOW_TOOLBAR_CALLBACK": "yamdl_playground.core.utils.show_debug_toolbar" + } + + DEBUG_TOOLBAR_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.redirects.RedirectsPanel', + # 'debug_toolbar.panels.profiling.ProfilingPanel', + ]