diff options
| author | Steve Piercy <web@stevepiercy.com> | 2018-08-18 12:24:33 -0700 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2018-08-18 12:24:33 -0700 |
| commit | 1d0533bcb8c7a7bbc7c2fdd28fa0d6b04d35a01a (patch) | |
| tree | f3b2d0d68376aa4ad7c59d2ee7ac2cc6ea3ce48b /docs/quick_tutorial | |
| parent | 8c0fa31950e4b69142aecef5fdb8644431c79cb7 (diff) | |
| download | pyramid-1d0533bcb8c7a7bbc7c2fdd28fa0d6b04d35a01a.tar.gz pyramid-1d0533bcb8c7a7bbc7c2fdd28fa0d6b04d35a01a.tar.bz2 pyramid-1d0533bcb8c7a7bbc7c2fdd28fa0d6b04d35a01a.zip | |
Clean up code-blocks in qt/sessions
Diffstat (limited to 'docs/quick_tutorial')
| -rw-r--r-- | docs/quick_tutorial/sessions.rst | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/quick_tutorial/sessions.rst b/docs/quick_tutorial/sessions.rst index df4887a4b..d67a5063a 100644 --- a/docs/quick_tutorial/sessions.rst +++ b/docs/quick_tutorial/sessions.rst @@ -36,39 +36,39 @@ Steps .. code-block:: bash - $ cd ..; cp -r view_classes sessions; cd sessions - $ $VENV/bin/pip install -e . + cd ..; cp -r view_classes sessions; cd sessions + $VENV/bin/pip install -e . #. Our ``sessions/tutorial/__init__.py`` needs a choice of session factory to get registered with the :term:`configurator`: .. literalinclude:: sessions/tutorial/__init__.py - :linenos: + :linenos: #. Our views in ``sessions/tutorial/views.py`` can now use ``request.session``: .. literalinclude:: sessions/tutorial/views.py - :linenos: + :linenos: #. The template at ``sessions/tutorial/home.pt`` can display the value: .. literalinclude:: sessions/tutorial/home.pt - :language: html - :linenos: + :language: html + :linenos: #. Make sure the tests still pass: .. code-block:: bash - $ $VENV/bin/py.test tutorial/tests.py -q - .... - 4 passed in 0.42 seconds + $VENV/bin/py.test tutorial/tests.py -q + .... + 4 passed in 0.42 seconds #. Run your Pyramid application with: .. code-block:: bash - $ $VENV/bin/pserve development.ini --reload + $VENV/bin/pserve development.ini --reload #. Open http://localhost:6543/ and http://localhost:6543/howdy in your browser. As you reload and switch between those URLs, note that the counter increases |
