aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/__init__.py
diff options
context:
space:
mode:
authorAymeric Augustin2013-11-30 13:37:37 +0100
committerAymeric Augustin2013-11-30 13:48:24 +0100
commitdc04efa74316676ff73330b01e79b2debae1df9f (patch)
tree61efd9613a60ee7c65119037188932746cf9caae /debug_toolbar/__init__.py
parent4b712fda71cd3301507c31e8ef835c0de105005a (diff)
downloaddjango-debug-toolbar-dc04efa74316676ff73330b01e79b2debae1df9f.tar.bz2
Reduce the risk of circular imports.
Diffstat (limited to 'debug_toolbar/__init__.py')
-rw-r--r--debug_toolbar/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/debug_toolbar/__init__.py b/debug_toolbar/__init__.py
index 12a7fc8..7ebd1c7 100644
--- a/debug_toolbar/__init__.py
+++ b/debug_toolbar/__init__.py
@@ -11,7 +11,7 @@ except Exception:
VERSION = 'unknown'
-from .toolbar import DebugToolbar
+# Code that discovers files or modules in INSTALLED_APPS imports this module.
+# Reference URLpatterns with a string to avoid the risk of circular imports.
-
-urls = DebugToolbar.get_urls(), 'djdt', 'djdt'
+urls = 'debug_toolbar.toolbar', 'djdt', 'djdt'