Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
10 lines (8 sloc) 298 Bytes
from project import db
from project.models import User
# insert data
db.session.add(User("michael", "michael@realpython.com", "i'll-never-tell"))
db.session.add(User("admin", "ad@min.com", "admin"))
db.session.add(User("mike", "mike@herman.com", "tell"))
# commit the changes
db.session.commit()
You can’t perform that action at this time.