blog/populate.py

6 lines
114 B
Python
Raw Permalink Normal View History

2020-07-08 14:36:13 +02:00
from oshipka.persistance import db
def populate_db(app):
with app.app_context():
db.session.commit()