diff options
| author | Paul Everitt <paul@agendaless.com> | 2013-09-16 06:20:43 -0700 |
|---|---|---|
| committer | Paul Everitt <paul@agendaless.com> | 2013-09-16 06:20:43 -0700 |
| commit | 4524d905975b481aee7f84b079a3abc5036508a6 (patch) | |
| tree | 69a4e468a29a39ec90e8f6618073bc4eba250a28 /docs/quick_tutorial/request_response.rst | |
| parent | 6625ddd9d78b1307aaff6b9c212c2fbbe926c9c0 (diff) | |
| parent | d749bf4c987c4ab90bd5f89326e7d4059e4f47b3 (diff) | |
| download | pyramid-4524d905975b481aee7f84b079a3abc5036508a6.tar.gz pyramid-4524d905975b481aee7f84b079a3abc5036508a6.tar.bz2 pyramid-4524d905975b481aee7f84b079a3abc5036508a6.zip | |
Merge pull request #1123 from tshepang/docs.quicktutorial
s/env/venv + make example links clickable
Diffstat (limited to 'docs/quick_tutorial/request_response.rst')
| -rw-r--r-- | docs/quick_tutorial/request_response.rst | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/quick_tutorial/request_response.rst b/docs/quick_tutorial/request_response.rst index 6c360557c..6a7e0f0c2 100644 --- a/docs/quick_tutorial/request_response.rst +++ b/docs/quick_tutorial/request_response.rst @@ -38,8 +38,8 @@ Steps .. code-block:: bash - (env)$ cd ..; cp -r view_classes request_response; cd request_response - (env)$ python setup.py develop + (venv)$ cd ..; cp -r view_classes request_response; cd request_response + (venv)$ python setup.py develop #. Simplify the routes in ``request_response/tutorial/__init__.py``: @@ -57,18 +57,18 @@ Steps .. code-block:: bash - (env)$ nosetests tutorial + (venv)$ nosetests tutorial #. Run your Pyramid application with: .. code-block:: bash - (env)$ pserve development.ini --reload + (venv)$ pserve development.ini --reload -#. Open ``http://localhost:6543/`` in your browser. You will be - redirected to ``http://localhost:6543/plain`` +#. Open http://localhost:6543/ in your browser. You will be + redirected to http://localhost:6543/plain -#. Open ``http://localhost:6543/plain?name=alice`` in your browser. +#. Open http://localhost:6543/plain?name=alice in your browser. Analysis ======== @@ -79,7 +79,7 @@ leading to the second by an HTTP redirect. Pyramid can special object from a view or raising a special exception. In this Pyramid view, we get the URL being visited from ``request.url``. -Also, if you visited ``http://localhost:6543/plain?name=alice``, +Also, if you visited http://localhost:6543/plain?name=alice, the name is included in the body of the response:: URL http://localhost:6543/plain?name=alice with name: alice |
