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 85233a1 commit 1aae629Copy full SHA for 1aae629
src/common/prometheus/__init__.py
@@ -5,8 +5,9 @@
5
6
def __getattr__(name: str) -> Any:
7
"""
8
- Since utils imports settings, we lazy load any objects that we want to import to
9
- prevent Django's settings-at-import-time trap
+ Since utils imports django.conf.settings, we lazy load any objects that
+ we want to import to prevent django.core.exceptions.ImproperlyConfigured
10
+ due to settings not being configured.
11
12
if name in _utils:
13
from common.prometheus import utils
0 commit comments