summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTimo Graham <timograham@gmail.com>2010-12-28 01:04:43 +0000
committerTimo Graham <timograham@gmail.com>2010-12-28 01:04:43 +0000
commitd3d345576df003893fab6d9cd1790495935f2d0d (patch)
treec09f33fbdc59d9be1c5b0f352cabf2b5e44ba5b8 /docs
parent75e841d534a9f85f6378b1b3a24001909e47b8b1 (diff)
Fixed #14682 - Add a note with an example of the explicit template location for class based views. Thanks PaulM for the suggestion, adamv for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15077 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/class-based-views.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/topics/class-based-views.txt b/docs/topics/class-based-views.txt
index 76474895f6..877323bcdd 100644
--- a/docs/topics/class-based-views.txt
+++ b/docs/topics/class-based-views.txt
@@ -154,6 +154,13 @@ name. In this case, the inferred template will be
app that defines the model, while the "publisher" bit is just the lowercased
version of the model's name.
+.. note::
+ Thus, when (for example) the :class:`django.template.loaders.app_directories.Loader`
+ template loader is enabled in :setting:`TEMPLATE_LOADERS`, the template
+ location would be::
+
+ /path/to/project/books/templates/books/publisher_list.html
+
.. highlightlang:: html+django
This template will be rendered against a context containing a variable called