File size: 255 Bytes
a8eb386
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from flask_script import Manager
from flask_migrate import MigrateCommand
from detectweb import create_app

app = create_app()
manager = Manager(app)
# 添加db命令
manager.add_command('db', MigrateCommand)

if __name__ == "__main__":
    manager.run()