flaskapp/init_db.py

11 lines
220 B
Python
Raw Normal View History

2023-10-20 13:20:56 +00:00
#!/usr/bin/env python3
from flaskapp import db
print('[i] Trying to create databse...')
try:
db.create_all()
print('[+] Success you can proceed with deployment!')
except:
print('[-] Creating db failed :/')