We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b712fd commit dc04efaCopy full SHA for dc04efa
debug_toolbar/__init__.py
@@ -11,7 +11,7 @@
11
VERSION = 'unknown'
12
13
14
-from .toolbar import DebugToolbar
+# Code that discovers files or modules in INSTALLED_APPS imports this module.
15
+# Reference URLpatterns with a string to avoid the risk of circular imports.
16
-
17
-urls = DebugToolbar.get_urls(), 'djdt', 'djdt'
+urls = 'debug_toolbar.toolbar', 'djdt', 'djdt'
debug_toolbar/toolbar.py
@@ -130,3 +130,6 @@ def get_urls(cls):
130
urlpatterns += panel_class.get_urls()
131
cls._urlpatterns = urlpatterns
132
return cls._urlpatterns
133
+
134
135
+urlpatterns = DebugToolbar.get_urls()
0 commit comments