Env. Variables not set while running Minimal Flask application

前端 未结 19 2213

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:47

    1. export FLASK_APP=run.py
    2. flask run --host=0.0.0.0

    then can run normally, output something like:

     * Serving Flask app "hello"
     * Forcing debug mode on
     * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
     * Restarting with stat
     * Debugger is active!
     * Debugger pin code: 353-795-063
    

提交回复
热议问题