Warning message while running Flask

后端 未结 9 1557
有刺的猬
有刺的猬 2020-12-07 13:07

While I am running Flask code from my command line, a warning is appearing:

Serving Flask app \"hello_flask\" (lazy loading)
* Environment: production
  WARN         


        
9条回答
  •  清歌不尽
    2020-12-07 14:02

    I was typing flask run and then saw this message after that I solve this issue with these:

    1- Add this text in your myproject/.flaskenv :
    FLASK_APP=myapp.py
    FLASK_ENV=development
    also you should type "pip3 install python-dotenv" for using this file .flaskenv

    2-in your project folder type in terminal your flask command which one you use :
    flask-3 run

提交回复
热议问题