Skip to content
This repository was archived by the owner on Nov 11, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/contributors/dev_hacking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.



Then point your browser at ``http://localhost:8000/``.
Expand Down