我是靠谱客的博主 神勇盼望,这篇文章主要介绍flask数据库初始化提示:WARNING: This is a development server. Do not use it in a production deployment.,现在分享给大家,希望可以做个参考。

解决方法:

将app.run()改为manager.run()

from flask_script import Manager
manager=Manager(app)
if __name__ == "__main__":
    # db.create_all()
    # app.run(debug=False)   #开发者模式
    manager.run()   #非开发者模式

执行结果

最后

以上就是神勇盼望最近收集整理的关于flask数据库初始化提示:WARNING: This is a development server. Do not use it in a production deployment.的全部内容,更多相关flask数据库初始化提示:WARNING:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(52)

评论列表共有 0 条评论

立即
投稿
返回
顶部