summaryrefslogtreecommitdiff
path: root/docs/quick_tour.rst
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2018-08-30 14:43:25 -0700
committerGitHub <noreply@github.com>2018-08-30 14:43:25 -0700
commit332ca33fc51fb64b8e15e1aceb28e96dee2c6fec (patch)
tree65935ce3e3709c9d89d9ad97bd13c35dcf8166f8 /docs/quick_tour.rst
parenta4b4cdf2968d871b0467c304cc20ff20a586adae (diff)
parente604ce4350ccb6a70f632d5a4fdc5984a4218fd1 (diff)
downloadpyramid-332ca33fc51fb64b8e15e1aceb28e96dee2c6fec.tar.gz
pyramid-332ca33fc51fb64b8e15e1aceb28e96dee2c6fec.tar.bz2
pyramid-332ca33fc51fb64b8e15e1aceb28e96dee2c6fec.zip
Merge pull request #3338 from Pylons/docs-cc-update-for-1.10
Update docs for all cookiecutters
Diffstat (limited to 'docs/quick_tour.rst')
-rw-r--r--docs/quick_tour.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/quick_tour.rst b/docs/quick_tour.rst
index c61cbfdfd..26195a701 100644
--- a/docs/quick_tour.rst
+++ b/docs/quick_tour.rst
@@ -755,14 +755,14 @@ Pyramid (for example, when a new request comes in).
Maybe you would like to log messages in your code? In your Python module,
import and set up the logging in your ``views.py``:
-.. literalinclude:: quick_tour/logging/hello_world/views.py
+.. literalinclude:: quick_tour/logging/hello_world/views/default.py
:language: python
:lineno-match:
:lines: 3-4
You can now, in your code, log messages:
-.. literalinclude:: quick_tour/logging/hello_world/views.py
+.. literalinclude:: quick_tour/logging/hello_world/views/default.py
:language: python
:lineno-match:
:lines: 7-8
@@ -819,13 +819,13 @@ Now make a "factory" and pass it to the :term:`configurator`'s
.. literalinclude:: quick_tour/sessions/hello_world/__init__.py
:language: python
:lineno-match:
- :lines: 10-13
+ :lines: 9-12
:emphasize-lines: 2-3
Pyramid's :term:`request` object now has a ``session`` attribute that we can
use in our view code in ``views.py``:
-.. literalinclude:: quick_tour/sessions/hello_world/views.py
+.. literalinclude:: quick_tour/sessions/hello_world/views/default.py
:language: python
:lineno-match:
:lines: 7-