haldis/app/create_database.py

19 lines
300 B
Python
Raw Normal View History

2015-03-26 20:49:14 +00:00
from models import *
from app import db
db.drop_all()
db.create_all()
feli = User()
2015-03-26 21:23:11 +00:00
feli.configure("feliciaan", True, 0)
2015-03-26 20:49:14 +00:00
db.session.add(feli)
2015-03-26 21:23:11 +00:00
wout = User()
wout.configure('wout', True, 0)
2015-03-27 23:02:12 +00:00
db.session.add(wout)
2015-03-26 20:49:14 +00:00
# To future developers, add yourself here
# commit all the things
db.session.commit()