What exactly is Werkzeug?

前端 未结 5 1051
[愿得一人]
[愿得一人] 2021-01-29 22:45

From the official documentation:

Werkzeug is a WSGI utility library for Python.

However, when I run my Flask web application, I noti

5条回答
  •  生来不讨喜
    2021-01-29 22:49

    Because it's not.

    In your setup your most probably using the "development server" (the run_simple function) for testing. So it is in this use-case like a (very) poor man's Apache, but only in a sense that it's able to answer HTTP requests correctly.

    If you check the docs http://werkzeug.pocoo.org/docs/serving/ , you'll see the following note:

    The development server is not intended to be used on production systems. It was designed especially for development purposes and performs poorly under high load. For deployment setups have a look at the Application Deployment pages.

提交回复
热议问题