Category "flask-sqlalchemy"

scoped_session(sessionmaker()) or plain sessionmaker() in sqlalchemy?

I am using SQlAlchemy in my web project. What should I use - scoped_session(sessionmaker()) or plain sessionmaker() - and why? Or should I use something else?

How to wire up migrations in Flask with declarative base?

I'm using the declarative Base in flask_sqlalchemy. In my database.py file I have the following: from sqlalchemy import create_engine # from sqlalchemy.orm imp