我是靠谱客的博主 神勇盼望,最近开发中收集的这篇文章主要介绍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: This is a development server. Do not use it in a production deployment.所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复