app.run(debug=True,host='0.0.0.0', port=8080)
在其他环境下,设定访问ip与 端口,直接在最后一句设定好host 和port就好.但在pycharm2018中不行.需要去
run-Edit-Configuration 中,找到Additinal options栏 :手动写入 --host=x.x.x.x --port=xxxx
app.run(debug=True,host='0.0.0.0', port=8080)
在其他环境下,设定访问ip与 端口,直接在最后一句设定好host 和port就好.但在pycharm2018中不行.需要去
run-Edit-Configuration 中,找到Additinal options栏 :手动写入 --host=x.x.x.x --port=xxxx
本文标题:pycharm2018 flask小坑记录
本文链接:https://www.haomeiwen.com/subject/wtkjdqtx.html
网友评论