summaryrefslogtreecommitdiff
path: root/docs/django-admin.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-08-19 21:23:56 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-08-19 21:23:56 +0000
commit00c6acaaf30adfb77dd38bf2064ed33d314258d9 (patch)
tree0fd965d5ce232bade0c3faaca866b8b07bc5c68f /docs/django-admin.txt
parent8d6c276328b43ab0351cbfae9bcfcacfa9fdd47d (diff)
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
Diffstat (limited to 'docs/django-admin.txt')
-rw-r--r--docs/django-admin.txt18
1 files changed, 15 insertions, 3 deletions
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 ...]
-----------------