From d7fa33af78aeae8a6a6e8261c697c7a03a821595 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sat, 15 Jan 2011 06:31:38 +0000 Subject: 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. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://code.djangoproject.com/svn/django/trunk@15215 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/django-admin.txt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'docs') 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.3