Warning message while running Flask

后端 未结 9 1540
有刺的猬
有刺的猬 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

    in configurations or config you can add this code : ENV = ""

    same as if you try to add debug set to true like this DEBUG = True

    for more detail you can check this http://flask.pocoo.org/docs/1.0/config/#ENV

提交回复
热议问题