{{{
$ ./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.
* owner: nobody => fmwviormv
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:1>
* type: New feature => Bug
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:2>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:3>
* 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>
Comment (by Abhijeet Pal):
PR https://github.com/django/django/pull/15748
--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:5>
* owner: Abhijeet => Abhijeet Pal
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:6>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:7>
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>
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>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:10>
* 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>
* needs_better_patch: 1 => 0
* needs_tests: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:12>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:13>
* 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>
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>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:16>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:17>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/32813#comment:18>
* 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>
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>