Env. Variables not set while running Minimal Flask application

前端 未结 19 2039

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

    Success with setx FLASK_APP test.py . Note: if not run, close command line and start other one.

    D:\projects\flask-oauthlibpy2>.evn\Scripts\activate
    
    (.evn) D:\projects\flask-oauthlibpy2>setx FLASK_APP test.py
    
    SUCCESS: Specified value was saved.
    
    (.evn) D:\projects\flask-oauthlibpy2>flask run
     * Serving Flask app "flask-oauthlibpy2.test"
     * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
    127.0.0.1 - - [24/May/2017 14:35:06] "GET / HTTP/1.1" 200 -
    

提交回复
热议问题