initial commit
This commit is contained in:
9
db_create.py
Executable file
9
db_create.py
Executable file
@ -0,0 +1,9 @@
|
||||
#!/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()
|
Reference in New Issue
Block a user