Skip to content

Code inside an event cannot access Flask's app context #1130

Answered by miguelgrinberg
allansifuna asked this question in Q&A
Discussion options

You must be logged in to vote

Have you tried using the actual application instance to push the app context instead of current_app? That's the correct way to do it.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@allansifuna
Comment options

@miguelgrinberg
Comment options

Answer selected by allansifuna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants