__author__ stroum import sys from project import app db from flask ext

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
__author__ = 'stroum'
import sys
from project import app, db
from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
manager.run()