mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
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
This commit is contained in:
@@ -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 ...]
|
||||
-----------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user