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

@ -66,11 +66,7 @@ Flask automatically *pushes* an app context when handling a request. Flask canno
first request, any changes will not be applied consistently. Make
sure all imports, decorators, functions, etc. needed to set up the
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
-----------------------