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
The app variable is the Flask app and it is not stored in database, I just set db.app = app because app is not a global variable and I needed to access it within my task.
db is a global variable so that within the task you can get the db object to access the database.
The app variable could also be a global variable, in such case you wouldn't need to set db.app = app
I don't know if I was clear, let know if you have more questions.
Hi, @viniciuschiele :
I read the example
flask_context.py
. I have some questions about that.app
stored in the database? And then we get theapp
from database throughdb.app
?Thank you!
The text was updated successfully, but these errors were encountered: