Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

Add an additional parameter to the runserver command #297

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vinc456
Copy link

@vinc456 vinc456 commented Nov 12, 2015

This caused me some grief during configuration. See http://www.holeintheceiling.com/blog/2012/06/21/django-and-runserver-0-0-0-0/ for more information.

@@ -193,7 +193,7 @@ Run the server

Run the server like this::

$ ./manage.py runserver --traceback
$ ./manage.py runserver 0.0.0.0:8000 --traceback # 0.0.0.0 allows access to the local Django dev server from other machines on the network.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two things:

  1. this only applies in certain situations, so I'd mention that as a note and not change this example
  2. instead of putting in a bash comment, it's better to have explanation text as its own paragraph.

This instead of this change, I'd do something like this after the "Then point your browser ..." paragraph:

.. note::

   Depending on how and where you're running runserver, you might need to specify
   the ip address and port to bind to. You can provide those as an argument to
   the runserver command. For example::

       $ ./manage.py runserver 0.0.0.0:8000

   will have runserver listen on all ip addresses at port 8000.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants