From b0b28ede912c817a62a84b97c332e39eda02d166 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Mon, 16 Sep 2013 02:14:53 +0200 Subject: s/env/venv just for sake of consistency --- docs/quick_tutorial/request_response.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/quick_tutorial/request_response.rst') diff --git a/docs/quick_tutorial/request_response.rst b/docs/quick_tutorial/request_response.rst index 6c360557c..2aebb5dc2 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,13 +57,13 @@ 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`` -- cgit v1.2.3 From d749bf4c987c4ab90bd5f89326e7d4059e4f47b3 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Mon, 16 Sep 2013 02:18:11 +0200 Subject: make example links clickable, for convenience --- docs/quick_tutorial/request_response.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/quick_tutorial/request_response.rst') diff --git a/docs/quick_tutorial/request_response.rst b/docs/quick_tutorial/request_response.rst index 2aebb5dc2..6a7e0f0c2 100644 --- a/docs/quick_tutorial/request_response.rst +++ b/docs/quick_tutorial/request_response.rst @@ -65,10 +65,10 @@ Steps (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 -- cgit v1.2.3