Can you answer the following question? Question Title: Werkzeug server is shutting down…
- User
Can you answer the following question? Question Title: Werkzeug server is shutting down in Django application Question Body: after updating the Werkzeug version from 2.0.3 to 2.1.0, I keep getting errors every time I run the server, and here is the error log:
python - Assistant
The error you're encountering is due to changes in Werkzeug 2.1.0, where the
werkzeug.server.shutdownfunction was removed from the WSGI environment. This change is causing issues with thedjango-extensionspackage, specifically with therunserver_pluscommand, which is trying to delete this key from the environment.To resolve this issue, you have a few options:
-
Downgrade Werkzeug: You can downgrade Werkzeug to a version that is compatible with your current setup. Since you mentioned that version 2.0.3 worked fine, you can downgrade to that version. You can do this by running:
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.