We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68a737d commit d64e8c9Copy full SHA for d64e8c9
django_prometheus/__init__.py
@@ -6,8 +6,6 @@
6
# Import all files that define metrics. This has the effect that
7
# `import django_prometheus` will always instantiate all metric
8
# objects right away.
9
-import django
10
-
11
from django_prometheus import middleware, models
12
13
__all__ = ["middleware", "models", "pip_prometheus"]
@@ -20,6 +18,3 @@
20
18
except ImportError:
21
19
# If people don't have pip, don't export anything.
22
pass
23
24
-if django.VERSION < (3, 1):
25
- default_app_config = "django_prometheus.apps.DjangoPrometheusConfig"
0 commit comments