March 2020
Intermediate to advanced
608 pages
17h 17m
English
Follow these steps to set up the Django Debug Toolbar, which can be switched on or off using a bookmarklet in the browser:
# myproject/settings/_base.pyDEBUG_TOOLBAR_CONFIG = { "DISABLE_PANELS": [], "SHOW_TOOLBAR_CALLBACK": "myproject.apps.core.misc.custom_show_toolbar", "SHOW_TEMPLATE_CONTEXT": True,}DEBUG_TOOLBAR_PANELS = [ "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.templates.TemplatesPanel", "debug_toolbar.panels.staticfiles.StaticFilesPanel",