summaryrefslogtreecommitdiff
path: root/docs/narr
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-01-16 04:28:07 -0500
committerChris McDonough <chrism@plope.com>2012-01-16 04:28:07 -0500
commitb63a4605608eca76c1b0afac194e189a9220995d (patch)
tree289b50a959b6f3457b849e14aaa01881586be045 /docs/narr
parentfda1a4d61293b3959f71558ff5429c89e7bb9d84 (diff)
downloadpyramid-b63a4605608eca76c1b0afac194e189a9220995d.tar.gz
pyramid-b63a4605608eca76c1b0afac194e189a9220995d.tar.bz2
pyramid-b63a4605608eca76c1b0afac194e189a9220995d.zip
fix output expectations for wsgiref, add indication that a virtualenv should be used to run helloworld
Diffstat (limited to 'docs/narr')
-rw-r--r--docs/narr/firstapp.rst14
1 files changed, 11 insertions, 3 deletions
diff --git a/docs/narr/firstapp.rst b/docs/narr/firstapp.rst
index 922b0ea82..0d1c9e3c7 100644
--- a/docs/narr/firstapp.rst
+++ b/docs/narr/firstapp.rst
@@ -22,13 +22,21 @@ Here's one of the very simplest :app:`Pyramid` applications:
When this code is inserted into a Python script named ``helloworld.py`` and
executed by a Python interpreter which has the :app:`Pyramid` software
-installed, an HTTP server is started on TCP port 8080:
+installed, an HTTP server is started on TCP port 8080.
+
+On UNIX:
+
+.. code-block:: text
+
+ $ /path/to/your/virtualenv/bin/python helloworld.py
+
+On Windows:
.. code-block:: text
- $ python helloworld.py
- serving on 0.0.0.0:8080 view at http://127.0.0.1:8080
+ C:\> \path\to\your\virtualenv\Scripts\python helloworld.py
+This command will not return and nothing will be printed to the console.
When port 8080 is visited by a browser on the URL ``/hello/world``, the
server will simply serve up the text "Hello world!"