Skip to content

Commit e301c9a

Browse files
authored
Update __init__.py
1 parent 5741677 commit e301c9a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

django_prometheus/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@
1818
except ImportError:
1919
# If people don't have pip, don't export anything.
2020
pass
21+
22+
if django.VERSION < (3, 2):
23+
default_app_config = "django_prometheus.apps.DjangoPrometheusConfig"

0 commit comments

Comments
 (0)