#36776: Note that the dev server is running in WSGI mode
-------------------------------------+-------------------------------------
Reporter: Matthew Pava | Owner: Parvez
Type: | Khan
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):
* component: Documentation => Core (Management commands)
* stage: Unreviewed => Accepted
* version: 6.0 => dev
Comment:
In general, this seems fine to tweak. I checked Daphne's `runserver`
output, and it looks like:
{{{
Starting ASGI/Daphne version 4.2.1 development server at
http://127.0.0.1:8000/
}}}
So I'd be happy to change Django's to:
{{{#!diff
diff --git a/django/core/management/commands/runserver.py
b/django/core/management/commands/runserver.py
index 0cf841b747..260badce5c 100644
--- a/django/core/management/commands/runserver.py
+++ b/django/core/management/commands/runserver.py
@@ -184,7 +184,7 @@ class Command(BaseCommand):
print(
f"{now}\n"
f"Django version {version}, using settings
{settings.SETTINGS_MODULE!r}\n"
- f"Starting development server at
{self.protocol}://{addr}:{server_port}/\n"
+ f"Starting WSGI development server at
{self.protocol}://{addr}:{server_port}/\n"
f"Quit the server with {quit_command}.",
file=self.stdout,
)
}}}
However, mixing this information up with the security warning doesn't seem
appropriate to me, nor taking a detour into middleware.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36776#comment:2>