th_htmx/run.py
2024-01-19 19:46:42 +01:00

12 lines
231 B
Python

from app import create_app, db
from app.models import User
app = create_app()
@app.before_first_request
def create_tables():
db.create_all()
if __name__ == '__main__':
app.run(debug=True) # Turn off debug in production