From fb30035ec15d56ac93362160e08f0ffbbfdd1212 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 4 Nov 2010 21:13:54 -0400 Subject: - Move static dir from pkg/templates/ to /pkg/ in pyramid_* paster templates. --- docs/tutorials/wiki2/basiclayout.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/tutorials/wiki2/basiclayout.rst') diff --git a/docs/tutorials/wiki2/basiclayout.rst b/docs/tutorials/wiki2/basiclayout.rst index bd5a04ef5..7448563c7 100644 --- a/docs/tutorials/wiki2/basiclayout.rst +++ b/docs/tutorials/wiki2/basiclayout.rst @@ -57,10 +57,10 @@ entry point happens to be the ``app`` function within the file named #. *Line 19*. We call :meth:`pyramid.configuration.Configurator.add_static_view` with the - arguments ``static`` (the name), and ``tutorial:templates/static``. This + arguments ``static`` (the name), and ``tutorial:static`` (the path). This registers a static resource view which will match any URL that starts with ``/static/``. This will serve up static resources for us from within the - ``templates/static`` directory of our ``tutorial`` package, in this case, + ``static`` directory of our ``tutorial`` package, in this case, via ``http://localhost:6543/static/`` and below. With this declaration, we're saying that any URL that starts with ``/static`` should go to the static view; any remainder of its path (e.g. the ``/foo`` in -- cgit v1.2.3