#34452: Report the correct port when using port 0 with runserver
------------------------------------------+------------------------
Reporter: Gergely Kalmár | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 4.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------+------------------------
When starting runserver on port 0 the operating system assigns an
available random-ish port number, however, this port number is not shown
in the information section:
{{{
$ ./manage runserver 0
Performing system checks...
System check identified no issues (0 silenced).
March 31, 2023 - 20:10:05
Django version 4.1.7, using settings '...'
Starting development server at http://127.0.0.1:0/
Quit the server with CONTROL-C.
}}}
Note that the shown development server URL is invalid – the actual port
used is not going to be zero.
--
Ticket URL: <https://code.djangoproject.com/ticket/34452>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018738e42ca6-73c1ab1f-8913-4c2a-85e4-4c0e27992eb4-000000%40eu-central-1.amazonses.com.