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/views.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/quick_tutorial/views.rst') diff --git a/docs/quick_tutorial/views.rst b/docs/quick_tutorial/views.rst index ca2a92adf..39861bb02 100644 --- a/docs/quick_tutorial/views.rst +++ b/docs/quick_tutorial/views.rst @@ -40,8 +40,8 @@ Steps .. code-block:: bash - (env)$ cd ..; cp -r function_testing views; cd views - (env)$ python setup.py develop + (venv)$ cd ..; cp -r function_testing views; cd views + (venv)$ python setup.py develop #. Our ``views/tutorial/__init__.py`` gets a lot shorter: @@ -64,7 +64,7 @@ Steps .. code-block:: bash - (env)$ nosetests tutorial + (venv)$ nosetests tutorial . ---------------------------------------------------------------------- Ran 4 tests in 0.141s @@ -75,7 +75,7 @@ Steps .. code-block:: bash - (env)$ pserve development.ini --reload + (venv)$ pserve development.ini --reload #. Open ``http://localhost:6543/`` and ``http://localhost:6543/howdy`` in your browser. -- 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/views.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/quick_tutorial/views.rst') diff --git a/docs/quick_tutorial/views.rst b/docs/quick_tutorial/views.rst index 39861bb02..0902c45dd 100644 --- a/docs/quick_tutorial/views.rst +++ b/docs/quick_tutorial/views.rst @@ -77,7 +77,7 @@ Steps (venv)$ pserve development.ini --reload -#. Open ``http://localhost:6543/`` and ``http://localhost:6543/howdy`` +#. Open http://localhost:6543/ and http://localhost:6543/howdy in your browser. Analysis @@ -89,7 +89,7 @@ Our views, and their view registrations (via decorators) are now in a module ``views.py`` which is scanned via ``config.scan('.views')``. We have 2 views, each leading to the other. If you start at -``http://localhost:6543/``, you get a response with a link to the next +http://localhost:6543/, you get a response with a link to the next view. The ``hello_view`` (available at the URL ``/howdy``) has a link back to the first view. -- cgit v1.2.3