django-constance/constance/__init__.py

18 lines
356 B
Python
Raw Normal View History

2021-03-15 22:43:56 +00:00
import django
from django.utils.functional import LazyObject
from . import checks
2010-08-23 11:06:52 +00:00
2022-03-11 20:36:39 +00:00
__version__ = '2.9.0'
2014-11-25 21:22:04 +00:00
2021-03-15 22:43:56 +00:00
if django.VERSION < (3, 2): # pragma: no cover
default_app_config = 'constance.apps.ConstanceConfig'
class LazyConfig(LazyObject):
def _setup(self):
from .base import Config
self._wrapped = Config()
2016-09-14 17:22:32 +00:00
config = LazyConfig()