Class LazySettings
A lazy proxy for either global Django settings or a custom settings object. The user can manually configure settings prior to using them. Otherwise, Django uses the settings module pointed to by DJANGO_SETTINGS_MODULE.
Declaration
source linkDocumentation
Methods
@property
def PASSWORD_RESET_TIMEOUT_DAYS(self)
▶ def __delattr__(self, name) override Delete a setting and clear it from cache if needed.
▷ def __getattr__(self, name) Return the value of a setting and cache it in self.__dict__.
▶ def __setattr__(self, name, value) override Set the value of setting. Clear all cached values if _wrapped changes (@override_settings does this) or clear single values when set.
▷ def configure(self, default_settings=global_settings, **options) Called to manually configure the settings. The 'default_settings' parameter sets where to retrieve any unspecified values from (its argument must support attribute access (__getattr__)).
▷ def configured(self) @property Return True if the settings have already been configured.