haldis/app/create_database.py
2015-03-28 00:02:12 +01:00

19 lines
300 B
Python

from models import *
from app import db
db.drop_all()
db.create_all()
feli = User()
feli.configure("feliciaan", True, 0)
db.session.add(feli)
wout = User()
wout.configure('wout', True, 0)
db.session.add(wout)
# To future developers, add yourself here
# commit all the things
db.session.commit()