V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
jakeyfly
V2EX  ›  问与答

pycharm 2018 会自动识别 flask 了,怎么配置啊 debug 都弄不好

  •  
  •   jakeyfly · Aug 16, 2018 · 3147 views
    This topic created in 2813 days ago, the information mentioned may be changed or developed.

    之前直接 RUN FLASK 的入口文件或启动文件是直接当一个 PYTHON 脚本来执行的。现在显示的是 flask server APP.后面配置的参数都没用了。还踩了一个坑

    This system supports the C.UTF-8 locale which is recommended. You might be able to resolve your issue by exporting the following environment variables:

    export LC_ALL=C.UTF-8
    export LANG=C.UTF-8
    

    现在问题不是这个!! 问题是 连端口都要手动配置,FLASK SERVER 要怎么配置啊!!!!!!

    1 replies    2018-09-04 16:31:52 +08:00
    xsjyvi
        1
    xsjyvi  
       Sep 4, 2018
    在 Run/Debug configurations 里,把自动识别的 flask 配置删除,自己添加成 Python 配置就好了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2747 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 15:39 · PVG 23:39 · LAX 08:39 · JFK 11:39
    ♥ Do have faith in what you're doing.