From 861fa3b2b14b82d03518ca64ae741588181c75d6 Mon Sep 17 00:00:00 2001 From: Vytautas Liuolia Date: Mon, 15 Jan 2024 23:44:10 +0100 Subject: [PATCH] docs(FAQ): add a note that wsgiref.simple_server is not recommended for prod --- docs/user/faq.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/user/faq.rst b/docs/user/faq.rst index d8f15951f..d442c9140 100644 --- a/docs/user/faq.rst +++ b/docs/user/faq.rst @@ -1277,6 +1277,11 @@ thread (otherwise it may deadlock): print('Serving on port 8000, POST to /shutdown to stop...') httpd.serve_forever() +.. warning:: + While ``wsgiref.simple_server`` is handy for integration testing, it builds + upon :mod:`http.server`, which is not recommended for production. (See + :ref:`install` on how to install a production-ready WSGI or ASGI server.) + How can I set cookies when simulating requests? -----------------------------------------------