Skip to content

Commit

Permalink
Fixed #14682 - Add a note with an example of the explicit template lo…
Browse files Browse the repository at this point in the history
…cation 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
  • Loading branch information
timgraham committed Dec 28, 2010
1 parent 75e841d commit d3d3455
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/topics/class-based-views.txt
Expand Up @@ -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
Expand Down

0 comments on commit d3d3455

Please sign in to comment.