Skip to content

Commit

Permalink
Support previous urls installation.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tim-schilling committed Dec 4, 2021
1 parent d8062ef commit 77194a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion debug_toolbar/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import django

from debug_toolbar.urls import app_name

__all__ = ["VERSION"]


Expand All @@ -9,7 +11,7 @@

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

urls = "debug_toolbar.toolbar", "djdt"
urls = "debug_toolbar.urls", app_name

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

0 comments on commit 77194a2

Please sign in to comment.