Flask-Web-App-Tutorial icon indicating copy to clipboard operation
Flask-Web-App-Tutorial copied to clipboard

App context is now required in Flask-SQLAlchemy

Open tkburis opened this issue 3 years ago • 0 comments

For newer versions of Flask-SQLAlchemy (>3.x I believe), app context is required when performing db.create_all() and other operations.

"You must be in an active Flask application context to execute queries and to access the session and engine." See https://flask-sqlalchemy.palletsprojects.com/en/3.0.x/quickstart/

tkburis avatar Nov 20 '22 20:11 tkburis