Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App context is now required in Flask-SQLAlchemy #90

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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