manage runserver does not allow host name as address
|Reported by:||Karmel Allison||Owned by:||Łukasz Rekucki|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In Django 1.2, it was possible to use a host name (i.e., example.com) to run a Django server from manage.py:
python manage.py runserver example.com:8000
However, that convenience has been removed in Django 1.3-alpha. It looks like in order to add functionality for IPv6 addresses, a regex was added (r14711, line 12) that raises an error if non-IP-like addresses are used:
python manage.py runserver example.com:8000 Error: 'example.com:8000' is not a valid port numberor address:port pair.
The ability to run the server using host names was quite convenient, and preferable in many cases to having an IP specified. Would it be possible to re-enable that feature?
Change History (13)
comment:1 Changed 6 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Accepted|