mirror of
https://github.com/django/django.git
synced 2026-02-09 02:49:25 +08:00
Fixed #36776 -- Clarified dev server runs in WSGI mode.
This commit is contained in:
@@ -184,7 +184,8 @@ class Command(BaseCommand):
|
|||||||
print(
|
print(
|
||||||
f"{now}\n"
|
f"{now}\n"
|
||||||
f"Django version {version}, using settings {settings.SETTINGS_MODULE!r}\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}"
|
||||||
|
f":{server_port}/\n"
|
||||||
f"Quit the server with {quit_command}.",
|
f"Quit the server with {quit_command}.",
|
||||||
file=self.stdout,
|
file=self.stdout,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1624,7 +1624,7 @@ class ManageRunserver(SimpleTestCase):
|
|||||||
self.cmd._raw_ipv6 = False
|
self.cmd._raw_ipv6 = False
|
||||||
self.cmd.on_bind("8000")
|
self.cmd.on_bind("8000")
|
||||||
self.assertIn(
|
self.assertIn(
|
||||||
"Starting development server at http://0.0.0.0:8000/",
|
"Starting WSGI development server at http://0.0.0.0:8000/",
|
||||||
self.output.getvalue(),
|
self.output.getvalue(),
|
||||||
)
|
)
|
||||||
docs_version = get_docs_version()
|
docs_version = get_docs_version()
|
||||||
@@ -1643,7 +1643,7 @@ class ManageRunserver(SimpleTestCase):
|
|||||||
self.cmd._raw_ipv6 = False
|
self.cmd._raw_ipv6 = False
|
||||||
self.cmd.on_bind("14437")
|
self.cmd.on_bind("14437")
|
||||||
self.assertIn(
|
self.assertIn(
|
||||||
"Starting development server at http://127.0.0.1:14437/",
|
"Starting WSGI development server at http://127.0.0.1:14437/",
|
||||||
self.output.getvalue(),
|
self.output.getvalue(),
|
||||||
)
|
)
|
||||||
docs_version = get_docs_version()
|
docs_version = get_docs_version()
|
||||||
@@ -1662,7 +1662,7 @@ class ManageRunserver(SimpleTestCase):
|
|||||||
self.cmd._raw_ipv6 = False
|
self.cmd._raw_ipv6 = False
|
||||||
self.cmd.on_bind("8000")
|
self.cmd.on_bind("8000")
|
||||||
self.assertIn(
|
self.assertIn(
|
||||||
"Starting development server at http://0.0.0.0:8000/",
|
"Starting WSGI development server at http://0.0.0.0:8000/",
|
||||||
self.output.getvalue(),
|
self.output.getvalue(),
|
||||||
)
|
)
|
||||||
docs_version = get_docs_version()
|
docs_version = get_docs_version()
|
||||||
|
|||||||
Reference in New Issue
Block a user