Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit the cases for E001 to likely scenarios #1925

Merged
merged 3 commits into from
Jul 3, 2024

Conversation

tim-schilling
Copy link
Contributor

Description

Only when the user is customizing both the show toolbar callback setting and the URLs aren't installed will the underlying NoReverseMatch error occur.

Fixes #1920

Checklist:

  • I have added the relevant tests for this change.
  • I have added an item to the Pending section of docs/changes.rst.

Only when the user is customizing both the show toolbar callback
setting and the URLs aren't installed will the underlying
NoReverseMatch error occur.
@tim-schilling
Copy link
Contributor Author

@matthiask I'm pretty confident the advanced installation is only necessary if the show toolbar callback isn't making use of settings.DEBUG.

Copy link
Member

@matthiask matthiask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. The explanation of DEBUG vs settings.DEBUG makes a lot of sense to me. Code looks good!

docs/configuration.rst Outdated Show resolved Hide resolved
@tim-schilling tim-schilling merged commit 2d9c6a7 into jazzband:main Jul 3, 2024
25 checks passed
@tim-schilling tim-schilling deleted the improve-e001 branch July 3, 2024 16:07
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.

Error after update to 4.4.1 (debug_toolbar.E001) The Django Debug Toolbar can't be used with tests
2 participants