From 00c6acaaf30adfb77dd38bf2064ed33d314258d9 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 19 Aug 2005 21:23:56 +0000 Subject: Fixed #360 -- runserver now takes optional 'ip:port' in addition to 'port'. Thanks, benno@jeamland.net git-svn-id: http://code.djangoproject.com/svn/django/trunk@539 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/django-admin.txt | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/django-admin.txt b/docs/django-admin.txt index ab9a05052d..6ac15341b9 100644 --- a/docs/django-admin.txt +++ b/docs/django-admin.txt @@ -80,11 +80,12 @@ install [app app ...] Executes the equivalent of ``sqlall`` for the given app(s). -runserver [optional port number] --------------------------------- +runserver [optional port number, or ipaddr:port] +------------------------------------------------ Starts a lightweight development Web server on the local machine. By default, -the server runs on port 8000. You can pass in a port number explicitly. +the server runs on port 8000 on the IP address 127.0.0.1. You can pass in an +IP address and port number explicitly. If you run this script as a user with normal privileges (recommended), you might not have access to start a port on a low port number. Low port numbers @@ -103,6 +104,17 @@ them to standard output, but it won't stop the server. You can run as many servers as you want, as long as they're on separate ports. Just execute ``django-admin.py runserver`` more than once. +Examples: +~~~~~~~~~ + +Port 7000 on IP address 127.0.0.1:: + + django-admin.py runserver 7000 + +Port 7000 on IP address 1.2.3.4:: + + django-admin.py runserver 1.2.3.4:7000 + sql [app app ...] ----------------- -- cgit v1.3