Flask configs per environment

When working on a Flask project, you may want to override flask configurations on different environments. Here are some suggestions. A folder structure like the following might work well /demo/ __init__.py configs/ __init__.py application.id default.py development.py production.py staging.py test.py controllers.py templates/ index.html In this structure, configs are plain python files and default is always loaded. […]