diff options
| author | Chris McDonough <chrism@plope.com> | 2011-09-24 03:56:48 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-09-24 03:56:48 -0400 |
| commit | 4937d9e5280fff849b346dcf6c1833ef6fe95119 (patch) | |
| tree | 69fe13b7853a3da419b03a7987e92e43753b65b5 /docs/narr/assets.rst | |
| parent | bfb71c175bb5de7a0c22599979d269d92f12ed27 (diff) | |
| parent | 9a784a4c94946872c493627e4295a26a3e608439 (diff) | |
| download | pyramid-4937d9e5280fff849b346dcf6c1833ef6fe95119.tar.gz pyramid-4937d9e5280fff849b346dcf6c1833ef6fe95119.tar.bz2 pyramid-4937d9e5280fff849b346dcf6c1833ef6fe95119.zip | |
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/narr/assets.rst')
| -rw-r--r-- | docs/narr/assets.rst | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/narr/assets.rst b/docs/narr/assets.rst index 93b03fbc9..cd76f7b60 100644 --- a/docs/narr/assets.rst +++ b/docs/narr/assets.rst @@ -102,7 +102,9 @@ directory on a filesystem to an application user's browser. Use the mechanism makes a directory of static files available at a name relative to the application root URL, e.g. ``/static`` or as an external URL. -.. note:: :meth:`~pyramid.config.Configurator.add_static_view` cannot serve a +.. note:: + + :meth:`~pyramid.config.Configurator.add_static_view` cannot serve a single file, nor can it serve a directory of static files directly relative to the root URL of a :app:`Pyramid` application. For these features, see :ref:`advanced_static`. @@ -312,7 +314,9 @@ instance of this class is actually used by the :meth:`~pyramid.config.Configurator.add_static_view` configuration method, so its behavior is almost exactly the same once it's configured. -.. warning:: The following example *will not work* for applications that use +.. warning:: + + The following example *will not work* for applications that use :term:`traversal`, it will only work if you use :term:`URL dispatch` exclusively. The root-relative route we'll be registering will always be matched before traversal takes place, subverting any views registered via |
