mbr / flask-appconfig

Configures Flask applications in a canonical way. Also auto-configures Heroku. Aims to standardize configuration.
http://pypi.python.org/pypi/flask-appconfig
MIT License
84 stars 15 forks source link

Fix naming of envvars prefix for apps loaded from submodules #3

Closed bkabrda closed 8 years ago

bkabrda commented 8 years ago

In bash (and probably other shells as well), dots are not allowed to be part of environment variable name. This means that if the app lives in a submodule, we should replace dots with underscores. E.g. if app is called foo.bar, it should read settings from FOO_BAR_* env variables.

mbr commented 8 years ago

Good catch. Thanks!