Skip to content

Commit d64e8c9

Browse files
authored
Remove old django version leftovers (#371)
1 parent 68a737d commit d64e8c9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

django_prometheus/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
# Import all files that define metrics. This has the effect that
77
# `import django_prometheus` will always instantiate all metric
88
# objects right away.
9-
import django
10-
119
from django_prometheus import middleware, models
1210

1311
__all__ = ["middleware", "models", "pip_prometheus"]
@@ -20,6 +18,3 @@
2018
except ImportError:
2119
# If people don't have pip, don't export anything.
2220
pass
23-
24-
if django.VERSION < (3, 1):
25-
default_app_config = "django_prometheus.apps.DjangoPrometheusConfig"

0 commit comments

Comments
 (0)