Warning message while running Flask

后端 未结 9 1541
有刺的猬
有刺的猬 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 13:42

    If you encounter NoAppException and you see lazy loading the following seemed to fix the issue:

    cd 
    export FLASK_APP=.
    export FLASK_ENV=development
    export FLASK_DEBUG=1
    

提交回复
热议问题