Python app configuration best practices
You have to try `simple-settings. It will resolve all you issues. One way set environment variable
in development
$ export SIMPLE_SETTINGS=settings.general,settings.development$ python app.py
in production
$ export SIMPLE_SETTINGS=settings.general,settings.production$ python app.py
You can keep `` development.pyand
production.py` not in a repository for security reasons.
Example
settings/general.py
SIMPLE_CONF = 'simple'
app.py
from simple_settings import settingsprint(settings.SIMPLE_CONF)
The documentation indicated many more features and benefits.