[Django] #34452: Report the correct port when using port 0 with runserver

4 views
Skip to first unread message

Django

unread,
Mar 31, 2023, 2:18:14 PM3/31/23
to django-...@googlegroups.com
#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.

Django

unread,
Mar 31, 2023, 2:20:40 PM3/31/23
to django-...@googlegroups.com
#34452: Report the correct port when using port 0 with runserver
-------------------------------------+-------------------------------------

Reporter: Gergely Kalmár | Owner: nobody
Type: Bug | Status: closed
Component: Core (Management | Version: 4.1
commands) |
Severity: Normal | Resolution: duplicate

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => duplicate
* component: Uncategorized => Core (Management commands)


Comment:

Duplicate of #32813.

--
Ticket URL: <https://code.djangoproject.com/ticket/34452#comment:1>

Reply all
Reply to author
Forward
0 new messages