Env. Variables not set while running Minimal Flask application

前端 未结 19 2040

I am trying to follow the flask documentation on my windows machine given at the following link: http://flask.pocoo.org/docs/0.11/quickstart/#debug-mode

Firstly I wrote

19条回答
  •  悲&欢浪女
    2021-01-30 03:48

    I faced the same issue while using PowerShell and that fix worked for me:
    instead of using set FLASK_APP = run.py, try $env:FLASK_APP = "run.py"

提交回复
热议问题