Flask: Should my own configuration be added to app.config? Flask: Should my own configuration be added to app.config? flask flask

Flask: Should my own configuration be added to app.config?


The first two options are not much different, other than you now don't have to import your config object separately. In other words, by using app.config you can access the configuration throughout your Flask app wherever you already have access to current_app.

The last option however should not be used, don't add attributes to the Flask object.