django_evolution.conf
Configuration for Django Evolution.
New in version 2.2.
Classes
|
Settings for Django Evolution. |
- class django_evolution.conf.DjangoEvolutionSettings(settings_module)
Bases:
object
Settings for Django Evolution.
This wraps the settings defined in
django.conf.settings
. Ifsettings.DJANGO_EVOLUTION
is set, then all supported keys will be loaded.Legacy settings (
settings.DJANGO_EVOLUTION_ENABLED
andsettings.CUSTOM_EVOLUTIONS
), if found, will be loaded, and will cause a deprecation warning to be emitted.New in version 2.2.
- ENABLED
Whether Django Evolution is enabled.
If enabled, the
syncdb
andmigrate
management 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:
- __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.