summaryrefslogtreecommitdiff
path: root/docs/narr
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-02-14 06:59:28 -0500
committerChris McDonough <chrism@plope.com>2012-02-14 06:59:28 -0500
commit9bdb099a5f5cb9f70c1bc60c2e2f58d6bc6f5c28 (patch)
tree940cd84b84fef03e0d6916baebe3bf78cd7b057d /docs/narr
parentc6a299ad7159ffcabe201fa79f485c388d837971 (diff)
downloadpyramid-9bdb099a5f5cb9f70c1bc60c2e2f58d6bc6f5c28.tar.gz
pyramid-9bdb099a5f5cb9f70c1bc60c2e2f58d6bc6f5c28.tar.bz2
pyramid-9bdb099a5f5cb9f70c1bc60c2e2f58d6bc6f5c28.zip
add note about debugtoolbar.hosts
Diffstat (limited to 'docs/narr')
-rw-r--r--docs/narr/project.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/narr/project.rst b/docs/narr/project.rst
index d69f0cf13..66643af73 100644
--- a/docs/narr/project.rst
+++ b/docs/narr/project.rst
@@ -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/>`_.