2016-09-14 17:22:32 +00:00
|
|
|
import django.dispatch
|
2015-01-06 11:24:58 +00:00
|
|
|
from django.utils.functional import LazyObject
|
2010-08-23 11:06:52 +00:00
|
|
|
|
2016-09-01 23:41:27 +00:00
|
|
|
__version__ = '1.2.1'
|
2014-11-25 21:22:04 +00:00
|
|
|
|
2015-01-06 11:24:58 +00:00
|
|
|
default_app_config = 'constance.apps.ConstanceConfig'
|
2014-11-25 21:46:58 +00:00
|
|
|
|
2015-01-06 11:24:58 +00:00
|
|
|
|
|
|
|
|
class LazyConfig(LazyObject):
|
|
|
|
|
def _setup(self):
|
|
|
|
|
from .base import Config
|
|
|
|
|
self._wrapped = Config()
|
|
|
|
|
|
2016-09-14 17:22:32 +00:00
|
|
|
|
2015-01-06 11:24:58 +00:00
|
|
|
config = LazyConfig()
|
2016-09-14 17:22:32 +00:00
|
|
|
|
|
|
|
|
updated_signal = django.dispatch.Signal(providing_args=['key', 'value'])
|