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.
Attributes
| Attribute | Type | Description |
|---|---|---|
| _wrapped | `Settings | UserSettingsHolder` |
Constructor
Signature
def LazySettings() - > null
Methods
configure()
@classmethod
def configure(
default_settings: object = global_settings,
**options: any
) - > null
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)).
Parameters
| Name | Type | Description |
|---|---|---|
| default_settings | object = global_settings | An object used as a fallback for settings not explicitly provided in options. |
| **options | any | Arbitrary keyword arguments representing setting names and their corresponding values; names must be uppercase. |
Returns
| Type | Description |
|---|---|
null | null |
configured()
@classmethod
def configured() - > boolean
Return True if the settings have already been configured.
Returns
| Type | Description |
|---|---|
boolean | True if the internal settings object has been initialized, False otherwise. |