Warning message while running Flask

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

    To remove the "Do not use the development server in a production environment." warning, run:

    export FLASK_ENV=development

    before flask run.

提交回复
热议问题