Skip to content

Commit 7d0962c

Browse files
committed
Support previous urls installation.
Update the __init__.py module to use the proper urls string path and app name. This will maintain backwards compatability with the documentations previous installation instructions.
1 parent 02c872a commit 7d0962c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

debug_toolbar/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import django
22

3+
from debug_toolbar.urls import app_name
4+
35
__all__ = ["VERSION"]
46

57

@@ -9,7 +11,7 @@
911

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

12-
urls = "debug_toolbar.toolbar", "djdt"
14+
urls = "debug_toolbar.urls", app_name
1315

1416
if django.VERSION < (3, 2):
1517
default_app_config = "debug_toolbar.apps.DebugToolbarConfig"

0 commit comments

Comments
 (0)