Helper function to easy fetch name from database or django settings and return default value if setting key isn’t found.
But if not default value is provided (None) the AttributeError exception can raised if setting key isn’t found.
If name is one of available app_name function raises ValueError cause cannot to returns config value.
For fetching app setting use next definition: <app_name>.<setting_name>.
Store all custom project settings in data field as json dump.
Model also have two more fields:
Is name a valid setting name or not?
Revert all stored settings to default values.
Base class for setting values that can provided in configuration definition file.
The class has next attributes:
The last three attributes can be provided only in Python module, when all other attrs can read from configuration definition file.
Read real setting value from database or if impossible - just send default setting value.
Convert current setting instance to form field.
You should provide kwargs and all values from here would be used when initing field instance instead of Setting attributes.
Convert setting value to necessary Python type. By default, returns same value without any conversion.
Update attributes for current setting instance.
Lazy loaded validators.