You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When making modular flask applications, it's common not to immediately provide the app in the constructor, but to pass it later on with the method init_app(app) as we can see in the documentation -- https://flask.palletsprojects.com/en/1.1.x/extensions/
When making modular flask applications, it's common not to immediately provide the app in the constructor, but to pass it later on with the method
init_app(app)as we can see in the documentation -- https://flask.palletsprojects.com/en/1.1.x/extensions/With a bit of changes on the constructor this can become a "proper" flask extension
https://flask.palletsprojects.com/en/1.1.x/extensiondev/
The example of the SQLite extension provides an idea on how this could look like: