Skip to content

Conversation

@tkburis
Copy link

@tkburis tkburis commented Nov 20, 2022

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants