Skip to content

Fix #1581: Duplicate the 'djdt' app_name to avoid importing the toolbar early #1582

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

Merged
merged 1 commit into from
Jan 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions debug_toolbar/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
from debug_toolbar.urls import app_name

__all__ = ["VERSION"]


# Do not use pkg_resources to find the version but set it here directly!
# see issue #1446
VERSION = "3.2.4"

# Code that discovers files or modules in INSTALLED_APPS imports this module.

urls = "debug_toolbar.urls", app_name
urls = "debug_toolbar.urls", "djdt" # See debug_toolbar/urls.py
2 changes: 1 addition & 1 deletion debug_toolbar/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from debug_toolbar.toolbar import DebugToolbar

app_name = "djdt"
app_name = "djdt" # See debug_toolbar/__init__.py
urlpatterns = DebugToolbar.get_urls()