Skip to content

Commit 73c24d6

Browse files
Use default app config discovery
Django 3.2 deprecated default_app_config. https://docs.djangoproject.com/en/3.2/releases/3.2/#automatic-appconfig-discovery
1 parent 7f2ad72 commit 73c24d6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

debug_toolbar/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import django
2+
13
__all__ = ["VERSION"]
24

35

@@ -9,4 +11,5 @@
911

1012
urls = "debug_toolbar.toolbar", "djdt"
1113

12-
default_app_config = "debug_toolbar.apps.DebugToolbarConfig"
14+
if django.VERSION < (3, 2):
15+
default_app_config = "debug_toolbar.apps.DebugToolbarConfig"

0 commit comments

Comments
 (0)