diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2011-01-15 06:31:38 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2011-01-15 06:31:38 +0000 |
| commit | d7fa33af78aeae8a6a6e8261c697c7a03a821595 (patch) | |
| tree | 198cc2be83335999406d4b8a2db9ccff911847ac /docs/ref/django-admin.txt | |
| parent | df5c01b8c545b4e48ac48c51237566bd9200a4cf (diff) | |
Fixed #14928 -- Ensure that a fully qualified domain name can be used for runserver. Thanks to Karmel Allison for the report, Łukasz Rekucki for the patch, and claudep for the tests.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/django-admin.txt')
| -rw-r--r-- | docs/ref/django-admin.txt | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 09856201ea..1150acb0cd 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -616,7 +616,7 @@ Example usage:: Run a FastCGI server as a daemon and write the spawned PID in a file. -runserver [port or ipaddr:port] +runserver [port or address:port] ------------------------------- .. django-admin:: runserver @@ -653,8 +653,10 @@ machines on the network, use its own IP address (e.g. ``192.168.2.1``) or .. versionchanged:: 1.3 -You can also provide an IPv6 address surrounded by brackets -(eg. ``[200a::1]:8000``). This will automaticaly enable IPv6 support. +You can provide an IPv6 address surrounded by brackets +(e.g. ``[200a::1]:8000``). This will automatically enable IPv6 support. + +A hostname containing ASCII-only characters can also be used. .. django-admin-option:: --adminmedia @@ -721,6 +723,14 @@ Port 7000 on IPv6 address ``2001:0db8:1234:5678::9``:: django-admin.py runserver [2001:0db8:1234:5678::9]:7000 +Port 8000 on IPv4 address of host ``localhost``:: + + django-admin.py runserver localhost:8000 + +Port 8000 on IPv6 address of host ``localhost``:: + + django-admin.py runserver -6 localhost:8000 + Serving static files with the development server ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
