Skip to content Skip to sidebar Skip to footer

Create Only ONE Table With Flask + SqlAlchemy

I'm developing a web application based on MySQL DBMS I followed the tutorial in that answer in which it creates all the tables related to every model calling the create_all(). The

Solution 1:

you can use create method

Model.__table__.create(session.bind)

Post a Comment for "Create Only ONE Table With Flask + SqlAlchemy"