This commit is contained in:
Gaspard d'Hautefeuille 2022-11-16 17:25:13 +00:00 committed by GitHub
parent 7a94551097
commit 77a37a9988
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,10 +67,6 @@ Flask automatically *pushes* an app context when handling a request. Flask canno
sure all imports, decorators, functions, etc. needed to set up the sure all imports, decorators, functions, etc. needed to set up the
application are done before running it. application are done before running it.
This typically means that you attempted to use functionality that
needed to interface with the current application object in some way.
To solve this, set up an application context with app.app_context().
Manually Push a Context Manually Push a Context
----------------------- -----------------------