haldis/app/create_database.py

18 lines
285 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-27 13:03:28 +00:00
destro = User()
destro.configure('destro', True, 0)
2015-03-26 20:49:14 +00:00
# To future developers, add yourself here
# commit all the things
db.session.commit()