make it compatible with python 3.4
This commit is contained in:
@@ -7,17 +7,17 @@ manager = Manager(app)
|
||||
@manager.command
|
||||
def initdb():
|
||||
db.create_all()
|
||||
print 'All tables created'
|
||||
print("All tables created")
|
||||
|
||||
@manager.command
|
||||
def dropdb():
|
||||
if prompt_bool("Are you sure you want to lose all your data"):
|
||||
db.drop_all()
|
||||
print 'All tables dropped'
|
||||
print("All tables dropped")
|
||||
|
||||
@manager.command
|
||||
def seed():
|
||||
print 'Adding sample data %s' % db.engine.url
|
||||
print("Adding sample data")
|
||||
designer = Designer(name="Martin", path='/martin')
|
||||
db.session.add(designer)
|
||||
db.session.commit()
|
||||
|
||||
Reference in New Issue
Block a user