summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2013-09-30 22:47:10 -0700
committerChris McDonough <chrism@plope.com>2013-09-30 22:47:10 -0700
commit6badf95ebaf6171b94f2fad6831b4ece0a7e6067 (patch)
tree824f02e43327b8b05ef3522bf1a946c3dbf3860a /docs
parenta84105fa594911121ba2bcba8a9435c8705c7c4d (diff)
parentac7d1752e071fb7dadbfbf7f4bd1efadd3052b4f (diff)
downloadpyramid-6badf95ebaf6171b94f2fad6831b4ece0a7e6067.tar.gz
pyramid-6badf95ebaf6171b94f2fad6831b4ece0a7e6067.tar.bz2
pyramid-6badf95ebaf6171b94f2fad6831b4ece0a7e6067.zip
Merge pull request #1136 from kpinc/qualify_assets
Qualify assets
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/project.rst13
1 files changed, 8 insertions, 5 deletions
diff --git a/docs/narr/project.rst b/docs/narr/project.rst
index 602f15fef..e5da3b5c5 100644
--- a/docs/narr/project.rst
+++ b/docs/narr/project.rst
@@ -971,12 +971,15 @@ named ``views`` instead of within a single ``views.py`` file, you might:
- Create a ``views`` directory inside your ``myproject`` package directory
(the same directory which holds ``views.py``).
-- *Move* the existing ``views.py`` file to a file inside the new ``views``
- directory named, say, ``blog.py``.
+- Create a file within the new ``views`` directory named ``__init__.py``. (It
+ can be empty. This just tells Python that the ``views`` directory is a
+ *package*.)
-- Create a file within the new ``views`` directory named ``__init__.py`` (it
- can be empty, this just tells Python that the ``views`` directory is a
- *package*.
+- *Move* the existing ``views.py`` file to a file inside the new ``views``
+ directory named, say, ``blog.py``. Because the ``templates`` directory
+ remains in the ``myproject`` package the template :term:`asset
+ specification`s in ``blog.py`` must now be fully qualified with the
+ project's package name (``myproject:templates/blog.pt``).
You can then continue to add view callable functions to the ``blog.py``
module, but you can also add other ``.py`` files which contain view callable