Skip to content

Commit

Permalink
Disable DDT profiling panel (cookiecutter#5069)
Browse files Browse the repository at this point in the history
It's currently not working well under Python 3.12
  • Loading branch information
browniebroke authored May 15, 2024
1 parent beba4c1 commit 1732734
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion {{cookiecutter.project_slug}}/config/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@
MIDDLEWARE += ["debug_toolbar.middleware.DebugToolbarMiddleware"]
# https://django-debug-toolbar.readthedocs.io/en/latest/configuration.html#debug-toolbar-config
DEBUG_TOOLBAR_CONFIG = {
"DISABLE_PANELS": ["debug_toolbar.panels.redirects.RedirectsPanel"],
"DISABLE_PANELS": [
"debug_toolbar.panels.redirects.RedirectsPanel",
# Disable profiling panel due to an issue with Python 3.12:
# https://github.com/jazzband/django-debug-toolbar/issues/1875
"debug_toolbar.panels.profiling.ProfilingPanel",
],
"SHOW_TEMPLATE_CONTEXT": True,
}
# https://django-debug-toolbar.readthedocs.io/en/latest/installation.html#internal-ips
Expand Down

0 comments on commit 1732734

Please sign in to comment.