diff --git a/debug_toolbar/__init__.py b/debug_toolbar/__init__.py index 84eea7d7a..05d62a515 100644 --- a/debug_toolbar/__init__.py +++ b/debug_toolbar/__init__.py @@ -1,3 +1,5 @@ +import django + __all__ = ["VERSION"] @@ -9,4 +11,5 @@ urls = "debug_toolbar.toolbar", "djdt" -default_app_config = "debug_toolbar.apps.DebugToolbarConfig" +if django.VERSION < (3, 2): + default_app_config = "debug_toolbar.apps.DebugToolbarConfig"