Configuration
While implementing any project, we may be required to have some configurations that are specific to different environments, such as toggling the debug mode in the development environment and monitoring in the production environment.
Flask has a flexible way of overcoming the configuration handling mechanism. Flask provides a config object on its instance. This config object is built by extending the Python dictionary object but with some additional features such as loading the configuration from a file, object, and default built-in configurations. You can look at a detailed description of the config mechanism at http://flask.pocoo.org/docs/0.12/config/.
In order to maintain the configuration based on environments, we are going ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access