Initial prototype for theme song booth
This commit is contained in:
commit
c16d48ee32
16 changed files with 898 additions and 0 deletions
12
init_db.py
Normal file
12
init_db.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
# Ensure project root is importable
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
from app import app
|
||||
from models import init_db
|
||||
|
||||
with app.app_context():
|
||||
init_db()
|
||||
print(f"Database initialized at {app.config['DATABASE']}")
|
||||
Reference in a new issue