Skip to content

Upgrade django-debug-toolbar to 8.0 - #2895

Open
tompollard wants to merge 1 commit into
devfrom
django-debug-toolbar-8
Open

tompollard wants to merge 1 commit into
devfrom
django-debug-toolbar-8

Conversation

@tompollard

Copy link
Copy Markdown
Member

Upgrades django-debug-toolbar from 5.2 to 8.0. Versions before 6.2 don't support Django 6; 8.0 supports Django 5.2, 6.0 and 6.1, and needs Python 3.10+.

It's in the dev dependency group and is only enabled when DEBUG is on. Note that deploy/update runs uv sync --locked without --no-dev, so the servers do install it.

The changes in 6.0 to 8.0 don't affect our setup (SHOW_TOOLBAR_CALLBACK, INTERNAL_IPS, include(debug_toolbar.urls)). The main visible change is that the toolbar now renders in a shadow DOM with a refreshed design. 7.1 also adds a Tasks panel for Django's built-in tasks, which will be useful later.

No code changes were needed.

Testing

  • Upgrade test passes (old server with new libraries, and new server).
  • manage.py check and makemigrations --check pass.
  • On the dev server, the toolbar renders alongside a styled page, the SQL panel opens and lists the page's queries, and there are no console errors.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant