Skip to content

Commit 743828d

Browse files
committed
Circular imports are still an issue even with newer versions of Django
Refs #881.
1 parent 5e099ec commit 743828d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

debug_toolbar/__init__.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,10 @@
1313

1414

1515
# Code that discovers files or modules in INSTALLED_APPS imports this module.
16-
# URLpatterns were referenced with a string prior to 1.9 to avoid the risk of
17-
# circular imports
1816

1917
if django.VERSION < (1, 9):
2018
urls = 'debug_toolbar.toolbar', 'djdt', 'djdt'
2119
else:
22-
from . import toolbar
23-
toolbar.app_name = 'djdt'
24-
urls = toolbar
20+
urls = 'debug_toolbar.toolbar', 'djdt'
2521

2622
default_app_config = 'debug_toolbar.apps.DebugToolbarConfig'

0 commit comments

Comments
 (0)