Env. Variables not set while running Minimal Flask application

前端 未结 19 1998

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 04:07

    I had the same issue on windows and found a solution from the flask documentation: https://flask.palletsprojects.com/en/1.1.x/tutorial/factory/

    My file structure: Flask_folder>>app

    (NB! app folder contains: __init_.py and routes.py)

    > set FLASK_APP=app

    > set FLASK_ENV=development

    > flask run

提交回复
热议问题