Skip to content

Commit cdb6b7e

Browse files
authored
Merge pull request #1467 from francoisfreitag/default-app-config
Use default app config discovery
2 parents 33c5e53 + 73c24d6 commit cdb6b7e

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)