demgirlz/db_create.py
2021-05-16 16:31:31 +02:00

10 lines
221 B
Python
Executable File

#!/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()