diff options
| author | Steve Piercy <web@stevepiercy.com> | 2019-12-28 00:21:57 -0800 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2020-01-02 23:30:59 -0800 |
| commit | 57fe1b6cb76717404ccc1777f2f3a4e6bf6b37a4 (patch) | |
| tree | ac14111afc02539fb245c8a88953bae939b2cd0f /docs/tutorials/wiki/definingviews.rst | |
| parent | 2e73919835c6480b6c5eb57dfb368812d6df9d43 (diff) | |
| download | pyramid-57fe1b6cb76717404ccc1777f2f3a4e6bf6b37a4.tar.gz pyramid-57fe1b6cb76717404ccc1777f2f3a4e6bf6b37a4.tar.bz2 pyramid-57fe1b6cb76717404ccc1777f2f3a4e6bf6b37a4.zip | |
Update docs/tutorials/wiki/definingviews.rst and related src files, and models src files
Diffstat (limited to 'docs/tutorials/wiki/definingviews.rst')
| -rw-r--r-- | docs/tutorials/wiki/definingviews.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorials/wiki/definingviews.rst b/docs/tutorials/wiki/definingviews.rst index bd8dc6ecf..2e4d009a1 100644 --- a/docs/tutorials/wiki/definingviews.rst +++ b/docs/tutorials/wiki/definingviews.rst @@ -73,7 +73,7 @@ Success executing this command will end with a line to the console similar to th .. code-block:: text - Successfully installed docutils-0.14 tutorial + Successfully installed docutils-0.15.2 tutorial Adding view functions in the ``views`` package @@ -356,7 +356,7 @@ Our templates name static assets, including CSS and images. We don't need to create these files within our package's ``static`` directory because they were provided by the cookiecutter at the time we created the project. As an example, the CSS file will be accessed via ``http://localhost:6543/static/theme.css`` by virtue of the call to the ``add_static_view`` directive in the ``routes.py`` file. -Any number and type of static assets can be placed in this directory (or subdirectories) +Any number and type of static assets can be placed in this directory (or subdirectories). They are referred to by either URL or using the convenience method ``static_url``, for example ``request.static_url('<package>:static/foo.css')``, within templates. |
