eonvelope.utils.workarounds module
Module with utility for the eonvelope project .
-
eonvelope.utils.workarounds.get_config(setting)[source]
A dirty workaround to enable constance to do the initial migration.
Initial migrations fail otherwise because the models depend on constance that is not initialized yet.
References
https://github.com/jazzband/django-constance/issues/229
- Parameters:
setting (str) – The config value to retrieve
- Return type:
Any
- Returns:
The requested setting value.
- Raises:
KeyError – Raised from any exception that is related to a settings value not existing.