配置flask的一些问题 首先给上相关配置代码 manage.py import os from flask_migrate import MigrateCommand from App import creat_app from flask_script import Manager # env=os.environ.get('default') app =creat_app(env='default') manager=Manager(app) manager.add_command("db",MigrateCommand) if __name__ == '__main__': m