Flask-Script扩展命令行(14)

pip install Flask-Script

 

from flask import Flask
from flask_script import Manager

app = Flask(__name__)

manager = Manager(app)

@app.route('/')
def index():
    return '床前明月光'

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

 

posted on 2019-06-10 10:01  李润声  阅读(130)  评论(0编辑  收藏  举报

导航