Skip to content

Limit the cases for E001 to likely scenarios #1925

New issue

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

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

Already on GitHub? # to your account

Merged
merged 3 commits into from
Jul 3, 2024
Merged

Limit the cases for E001 to likely scenarios #1925

merged 3 commits into from
Jul 3, 2024

Conversation

tim-schilling
Copy link
Member

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
Member 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!

@tim-schilling tim-schilling merged commit 2d9c6a7 into django-commons:main Jul 3, 2024
25 checks passed
@tim-schilling tim-schilling deleted the improve-e001 branch July 3, 2024 16:07
# for free to join this conversation on GitHub. Already have an account? # 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