django_evolution.conf
Configuration for Django Evolution.
Added in version 2.2.
Classes
|
Settings for Django Evolution. |
- class django_evolution.conf.DjangoEvolutionSettings(settings_module)
Bases:
objectSettings for Django Evolution.
This wraps the settings defined in
django.conf.settings. Ifsettings.DJANGO_EVOLUTIONis set, then all supported keys will be loaded.Legacy settings (
settings.DJANGO_EVOLUTION_ENABLEDandsettings.CUSTOM_EVOLUTIONS), if found, will be loaded, and will cause a deprecation warning to be emitted.Added in version 2.2.
- ENABLED
Whether Django Evolution is enabled.
If enabled, the
syncdbandmigratemanagement commands will instead use Django Evolution. Post-syncdb/migrate operations will also cause Django Evolution to track state.If disabled, the management commands will operate no differently than in a normal Django installation.
- Type:
- RENAMED_FIELD_TYPES
A mapping for fields that have been moved or renamed. This will map the old path to the new one, for purposes of loading and validating field signatures.
- Type:
Added in version 2.4.
- __init__(settings_module)
Initialize the settings wrapper.
- Parameters:
settings_module (
module) – The Django settings module to load from.
- load_settings(settings_module)
Set defaults and load settings.
- Parameters:
settings_module (
module) – The Django settings module to load from.