diff options
| author | Steve Piercy <web@stevepiercy.com> | 2018-08-30 03:40:56 -0700 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2018-08-30 03:40:56 -0700 |
| commit | 8f30e87698ea2041d3baec080417167c3d2f3674 (patch) | |
| tree | 7f18f1fb27b5cb6ade35f3debd325bcbd37a3d43 /docs/quick_tour.rst | |
| parent | 9a9ea6a2c050c1ad5044df34b49026af016c463a (diff) | |
| download | pyramid-8f30e87698ea2041d3baec080417167c3d2f3674.tar.gz pyramid-8f30e87698ea2041d3baec080417167c3d2f3674.tar.bz2 pyramid-8f30e87698ea2041d3baec080417167c3d2f3674.zip | |
Update quick_tour with starter and alchemy cookiecutters source files
Diffstat (limited to 'docs/quick_tour.rst')
| -rw-r--r-- | docs/quick_tour.rst | 8 |
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- |
