#15219: 'runserver' no longer accepts hostname for address:port pair arguments
---------------------------------------+------------------------------------
Reporter: andrewl | Owner: nobody
Status: new | Milestone:
Component: django-admin.py runserver | Version: 1.2
Keywords: | Triage Stage: Unreviewed
Has patch: 0 |
---------------------------------------+------------------------------------
runserver used to accept a hostname as the 'address' argument for the
address:port pair. For example:
{{{
python manage.py runserver myhostname:8765
}}}
However this now fails with the following error message:
{{{
Error: 'myhostname:8765' is not a valid port numberor address:port pair.
}}}
...which, incidentally, is missing a space between 'number' and 'or' (see
lines 46-47 in django.core.management.commands.runserver.py).
Obviously dummy host:port values are used in the example above, but (just
to clarify) the error message also occurs when real, valid host:port
values are used.
The error is because of the naiveip_re regular expression defined on line
12 of django.core.management.commands.runserver.py, which is used to
validate the 'address' portion of the arguments, which will only accept
IPv4/v6 addresses, not hostnames (which, admittedly, may be the desired
behaviour...?).
--
Ticket URL: <http://code.djangoproject.com/ticket/15219>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.