Skip to content

Commit

Permalink
add note about debugtoolbar.hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed Feb 14, 2012
1 parent c6a299a commit 9bdb099
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/narr/project.rst
Expand Up @@ -322,6 +322,22 @@ image again.

.. image:: project-debug.png

If you don't see the debug toolbar image on the right hand top of the page,
it means you're browsing from a system that does not have debugging access.
By default, for security reasons, only a browser originating from
``localhost`` (``127.0.0.1``) can see the debug toolbar. To allow your
browser on a remote system to access the server, add the a line within the
``[app:main]`` section of the ``development.ini`` file in the form
``debugtoolbar.hosts = X.X.X.X``. For example, if your Pyramid application
is running on a remote system, and you're browsing from a host with the IP
address ``192.168.1.1``, you'd add something like this to enable the toolbar
when your system contacts Pyramid:

.. code-block:: ini
[app:main]
debugtoolbar.hosts = 192.168.1.1
For more information about what the debug toolbar allows you to do, see `the
documentation for pyramid_debugtoolbar
<http://docs.pylonsproject.org/projects/pyramid_debugtoolbar/dev/>`_.
Expand Down

0 comments on commit 9bdb099

Please sign in to comment.