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

Introduce debug_toolbar_urls to simplify installation #1926

Merged
merged 3 commits into from
Jul 3, 2024

Conversation

tim-schilling
Copy link
Member

Description

While this isn't a huge improvement, it provides a hook for us
to more easily introduce library level controls for when urls
are installed. It also eliminates the user from having to
write an if statement for the most basic of installations.

Checklist:

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

This is a follow-up to #1925

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 tim-schilling force-pushed the urls-helper branch 2 times, most recently from 340a920 to 81602ef Compare May 28, 2024 12:39
While this isn't a huge improvement, it provides a hook for us
to more easily introduce library level controls for when urls
are installed. It also eliminates the user from having to
write an if statement for the most basic of installations.
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.

Seems to work well; I'm not sure if I have one of the odd projects where running tests with the debug toolbar was problematic or not (I don't remember), but everything works fine now.

@tim-schilling tim-schilling merged commit 325ea19 into django-commons:main Jul 3, 2024
25 checks passed
@tim-schilling tim-schilling deleted the urls-helper branch July 3, 2024 16:14
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.

2 participants