Env. Variables not set while running Minimal Flask application

前端 未结 19 2053

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

    Your code is correct. Try setting the Command-Line variable like this :

    setx FLASK_APP run.py
    

    And then run it : flask run.

提交回复
热议问题