Skip to content

Commit 14ec5d9

Browse files
committed
configure check
1 parent bccd2ec commit 14ec5d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

django_prometheus/conf/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
from django.conf import settings
22

3+
if not settings.configured:
4+
settings.configure()
35

46
NAMESPACE = getattr(settings, 'PROMETHEUS_METRIC_NAMESPACE', '')

0 commit comments

Comments
 (0)