demgirlz/db_create.py

10 lines
221 B
Python
Raw Permalink Normal View History

2021-05-14 20:29:29 +02:00
#!/usr/bin/env python3
from demweb.app import create_app
from demweb.extensions import db
if __name__ == '__main__':
app = create_app()
with app.app_context():
db.create_all()
db.session.commit()