02.flask-script

网址:https://pypi.org/project/Flask-Script/

文档:https://flask-script.readthedocs.io/en/latest/

1、安装

2、新建manager.py文件

3、导入Manager和app

4、代码

from flask_script import Manager
from app import app

manager = Manager(app)


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

5、启动

python manager.py runserver

6、查看其它参数

python manager.py runserver --help
posted @ 2019-12-20 22:10  市丸银  阅读(149)  评论(0编辑  收藏  举报