haldis/app/create_database.py
Wout Schellaert d323a7065c Merge remote-tracking branch 'origin/master'
Conflicts:
	app/create_database.py
2015-03-28 00:08:27 +01:00

19 lines
306 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)
destro = User()
destro.configure('wout', True, 0)
db.session.add(destro)
# To future developers, add yourself here
# commit all the things
db.session.commit()