mattermore/setup_database.py

9 lines
142 B
Python
Raw Normal View History

2018-09-24 20:57:36 +02:00
#!/usr/bin/env python3
from app.app import db, models
db.create_all()
db.session.add(models.User('admin', admin=True))
db.session.commit()