diff options
Diffstat (limited to 'docs/quick_tutorial/views.rst')
| -rw-r--r-- | docs/quick_tutorial/views.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/quick_tutorial/views.rst b/docs/quick_tutorial/views.rst index ca2a92adf..0902c45dd 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,9 +75,9 @@ Steps .. code-block:: bash - (env)$ pserve development.ini --reload + (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. |
