<gh_stars>0
from info import create_app,db,models
from flask_script import Manager


# 导入数据库迁移的扩展
from flask_migrate import Migrate,MigrateCommand

app=create_app('development')

manager=Manager(app)

Migrate(app,db)

# 使用迁移框架
manager.add_command('db',MigrateCommand)

if __name__ == '__main__':
    # print(app.url_map)
    manager.run()













































from info import create_app,db,models
from flask_script import Manager


# 导入数据库迁移的扩展
from flask_migrate import Migrate,MigrateCommand

app=create_app('development')

manager=Manager(app)

Migrate(app,db)

# 使用迁移框架
manager.add_command('db',MigrateCommand)

if __name__ == '__main__':
    # print(app.url_map)
    manager.run()
# 导入数据库迁移的扩展 # 使用迁移框架 # print(app.url_map)