diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-10-09 07:55:07 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-10-09 07:55:07 +0000 |
| commit | 4e7436febec1f4dc10a5b32fcc4020bea751226d (patch) | |
| tree | fb78a97e0a5f96d6a5b913cbe14b6a50f910e330 /docs/tutorials/bfgwiki2/definingviews.rst | |
| parent | e8a3613bc35083acc850f206876037a735b813ed (diff) | |
| download | pyramid-4e7436febec1f4dc10a5b32fcc4020bea751226d.tar.gz pyramid-4e7436febec1f4dc10a5b32fcc4020bea751226d.tar.bz2 pyramid-4e7436febec1f4dc10a5b32fcc4020bea751226d.zip | |
route -> static directive.
Diffstat (limited to 'docs/tutorials/bfgwiki2/definingviews.rst')
| -rw-r--r-- | docs/tutorials/bfgwiki2/definingviews.rst | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/docs/tutorials/bfgwiki2/definingviews.rst b/docs/tutorials/bfgwiki2/definingviews.rst index b89a2c7f7..6dbea104e 100644 --- a/docs/tutorials/bfgwiki2/definingviews.rst +++ b/docs/tutorials/bfgwiki2/definingviews.rst @@ -245,9 +245,10 @@ our package's ``templates/static`` directory: This CSS file will be accessed via e.g. ``http://localhost:6543/static/style.css`` by virtue of the -``static_view`` view we've defined in the ``views.py`` file. Any -number and type of static resources can be placed in this directory -(or subdirectories) and are just referred to by URL within templates. +``<static>`` directive we've defined in the ``configure.zcml`` file. +Any number and type of static resources can be placed in this +directory (or subdirectories) and are just referred to by URL within +templates. Mapping Views to URLs in ``configure.zcml`` =========================================== @@ -256,9 +257,7 @@ The ``configure.zcml`` file contains ``route`` declarations (and a lone ``view`` declaration) which serve to map URLs via :term:`url dispatch` to view functions. First, we’ll get rid of the existing ``route`` created by the template using the name ``home``. It’s only -an example and isn’t relevant to our application. We'll leave the -static ``view`` declaration as it is, since we are going to use it to -serve CSS. +an example and isn’t relevant to our application. We then need to add four ``route`` declarations to ``configure.zcml``. Note that the *ordering* of these declarations is very important. |
