diff options
| author | michr <michr@webhippo.net> | 2011-09-23 18:48:28 -0700 |
|---|---|---|
| committer | michr <michr@webhippo.net> | 2011-09-23 18:48:28 -0700 |
| commit | 012b9762cd0b114b6afbf2d6356554b51706804a (patch) | |
| tree | c57c9a9797e29027c027c4eb65ad4735ca7a6214 /docs/narr/assets.rst | |
| parent | f487b2f1e5f6d4badf5eda64c0ee4fba699bfb92 (diff) | |
| download | pyramid-012b9762cd0b114b6afbf2d6356554b51706804a.tar.gz pyramid-012b9762cd0b114b6afbf2d6356554b51706804a.tar.bz2 pyramid-012b9762cd0b114b6afbf2d6356554b51706804a.zip | |
fixed up all the warning dealing ..note and ..warn
added a hide toc for glossary to prevent warnings
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 |
