10 lines
228 B
Python
10 lines
228 B
Python
#!/usr/bin/env python3
|
|
|
|
from app.app import db, models
|
|
|
|
db.create_all()
|
|
|
|
exists = models.User.query.filter_by(username='admin').first()
|
|
if not exists:
|
|
db.session.add(models.User('admin', admin=True))
|
|
db.session.commit()
|