Flask Series: Application Configuration

Each application needs a configuration. Flask allows developers to implement their application configuration using several different approaches: file-based; object-based; environment-variable-based; instance-folders-based; Regardless of what approach developer chooses for her/ his Flask application configuration, all configuration values are loaded on the config attribute(configuration dictionary) of the Flask application object: There is a list of configuration values, …

Flask Series: Structure the Application

In the previous blog post of Flask Series I have described how to prepare your Flask environment, now it’s time to structure it. Create your project structure using the following directory hierarchy: │   run.py ├───bin ├───bookshelf │   │   __init__.py │   ├───admin │   │       controllers.py │   │       __init__.py │   └───main │           controllers.py │           __init__.py ├───docs └───tests …