[Django] #32813: Display development server address after server bind

11 views
Skip to first unread message

Django

unread,
Jun 3, 2021, 4:38:46 AM6/3/21
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: nobody
Type: New | Status: new
feature |
Component: Core | Version: dev
(Management commands) | Keywords: development server,
Severity: Normal | automatic port
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Currently Django will display server name and port before actual binding;
so there is a problem with port 0 (automatic port):

{{{
$ ./manage.py runserver 127.0.0.1:0
...
Starting development server at http://127.0.0.1:0/
Quit the server with CONTROL-C.
}}}

in this case port number is chosen automatically by operating system
dynamically;
so there is no way we can find it before binding.
Django should display port number after binding (real port number):

{{{
$ ./manage.py runserver 127.0.0.1:0
...
Starting development server at http://127.0.0.1:25837/
Quit the server with CONTROL-C.
}}}

I also have a pull-request in github:
https://github.com/django/django/pull/14250

--
Ticket URL: <https://code.djangoproject.com/ticket/32813>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 3, 2021, 12:28:41 PM6/3/21
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: fmwviormv
Type: New feature | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: development server, | Triage Stage:
automatic port | Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

* owner: nobody => fmwviormv
* status: new => assigned


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

Django

unread,
Jun 8, 2021, 2:04:15 AM6/8/21
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: fmwviormv
Type: Bug | Status: assigned

Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: development server, | Triage Stage: Accepted
automatic port |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* type: New feature => Bug
* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:2>

Django

unread,
Jun 8, 2021, 6:11:08 AM6/8/21
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: fmwviormv
Type: Bug | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: development server, | Triage Stage: Accepted
automatic port |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:3>

Django

unread,
May 31, 2022, 10:15:56 AM5/31/22
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: Abhijeet

Type: Bug | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: development server, | Triage Stage: Accepted
automatic port |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Abhijeet Pal):

* owner: fmwviormv => Abhijeet


Comment:

Hi, there has not been any activity in the last 12 months and the original
PR was closed. I am assigning the ticket to myself to move it forward.

--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:4>

Django

unread,
May 31, 2022, 9:53:20 PM5/31/22
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: Abhijeet
Type: Bug | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: development server, | Triage Stage: Accepted
automatic port |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Abhijeet Pal):

PR https://github.com/django/django/pull/15748

--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:5>

Django

unread,
Jul 14, 2022, 6:08:37 AM7/14/22
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: Abhijeet
| Pal

Type: Bug | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: development server, | Triage Stage: Accepted
automatic port |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Abhijeet Pal):

* owner: Abhijeet => Abhijeet Pal
* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:6>

Django

unread,
Jul 21, 2022, 5:02:35 AM7/21/22
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: Abhijeet
| Pal
Type: Bug | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: development server, | Triage Stage: Accepted
automatic port |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:7>

Django

unread,
Aug 5, 2022, 7:10:52 PM8/5/22
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: Abhijeet
| Pal
Type: Bug | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: development server, | Triage Stage: Accepted
automatic port |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Gav O'Connor):

Happy to pick up the PR updates if @TheAbhijeet isn't available?

--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:8>

Django

unread,
Aug 5, 2022, 10:17:31 PM8/5/22
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: Abhijeet
| Pal
Type: Bug | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: development server, | Triage Stage: Accepted
automatic port |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Abhijeet Pal):

Hi, was busy for a couple of weeks, I would try to make the asked changes
over this weekend.

--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:9>

Django

unread,
Aug 6, 2022, 11:30:44 PM8/6/22
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: Abhijeet
| Pal
Type: Bug | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: development server, | Triage Stage: Accepted
automatic port |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Abhijeet Pal):

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:10>

Django

unread,
Aug 9, 2022, 5:32:52 AM8/9/22
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: Abhijeet
| Pal
Type: Bug | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: development server, | Triage Stage: Accepted
automatic port |
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* needs_better_patch: 0 => 1

* needs_tests: 0 => 1


Comment:

Additional tests needed (and maybe adjustment) on the changes to
`basehttp.run`, but looking about right beyond that.

--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:11>

Django

unread,
Aug 29, 2022, 7:48:53 AM8/29/22
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: Abhijeet
| Pal
Type: Bug | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: development server, | Triage Stage: Accepted
automatic port |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Abhijeet Pal):

* needs_better_patch: 1 => 0

* needs_tests: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:12>

Django

unread,
Sep 14, 2022, 5:26:48 AM9/14/22
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: Abhijeet
| Pal
Type: Bug | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: development server, | Triage Stage: Accepted
automatic port |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:13>

Django

unread,
Nov 22, 2022, 10:31:02 AM11/22/22
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: Dhanush

Type: Bug | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: development server, | Triage Stage: Accepted
automatic port |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Dhanush):

* owner: Abhijeet Pal => Dhanush


* needs_better_patch: 1 => 0


Comment:

PR https://github.com/django/django/pull/16319

--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:14>

Django

unread,
Nov 22, 2022, 11:52:18 PM11/22/22
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: Dhanush
Type: Bug | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: development server, | Triage Stage: Accepted
automatic port |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Abhijeet Pal):

Hi, sorry.

But I was waiting for some comments on it to move forward to closing the
ticket on my PR.

I missed Carlton's notification of
{{{
Patch needs improvement: set
}}}
Never mind I wish you luck.

--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:15>

Django

unread,
Dec 30, 2022, 12:57:07 AM12/30/22
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: Dhanush
Type: Bug | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: development server, | Triage Stage: Accepted
automatic port |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:16>

Django

unread,
Feb 10, 2023, 12:03:44 AM2/10/23
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: Dhanush
Type: Bug | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: development server, | Triage Stage: Accepted
automatic port |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:17>

Django

unread,
Feb 10, 2023, 2:30:42 AM2/10/23
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: Dhanush
Type: Bug | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: development server, | Triage Stage: Ready for
automatic port | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:18>

Django

unread,
Feb 10, 2023, 3:55:36 AM2/10/23
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: Dhanush
Type: Bug | Status: closed

Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution: fixed

Keywords: development server, | Triage Stage: Ready for
automatic port | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"a18d20ca97e6799152c1e0b6f007fde943053dcb" a18d20c]:
{{{
#!CommitTicketReference repository=""
revision="a18d20ca97e6799152c1e0b6f007fde943053dcb"
Fixed #32813 -- Made runserver display port after binding.

Thanks Florian Apolloner for the review.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:19>

Django

unread,
Feb 10, 2023, 3:56:06 AM2/10/23
to django-...@googlegroups.com
#32813: Display development server address after server bind
-------------------------------------+-------------------------------------
Reporter: fmwviormv | Owner: Dhanush
Type: Bug | Status: closed
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution: fixed
Keywords: development server, | Triage Stage: Ready for
automatic port | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"a0623b117c2fc74a4eea46f8adb914182a5670b5" a0623b11]:
{{{
#!CommitTicketReference repository=""
revision="a0623b117c2fc74a4eea46f8adb914182a5670b5"
[4.2.x] Fixed #32813 -- Made runserver display port after binding.

Thanks Florian Apolloner for the review.

Backport of a18d20ca97e6799152c1e0b6f007fde943053dcb from main
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:20>

Reply all
Reply to author
Forward
0 new messages