Ticket #14682: generic-views-templates.diff

File generic-views-templates.diff, 748 bytes (added by Adam Vandenberg, 13 years ago)
  • docs/topics/class-based-views.txt

    diff --git a/docs/topics/class-based-views.txt b/docs/topics/class-based-views.txt
    index 7647489..f5fb60d 100644
    a b name. In this case, the inferred template will be  
    154154app that defines the model, while the "publisher" bit is just the lowercased
    155155version of the model's name.
    156156
     157.. note::
     158    Thus, when the :class:`django.template.loaders.app_directories.Loader`
     159    template loader is enabled in :setting:`TEMPLATE_LOADERS`, the template
     160    location would be::
     161
     162        /path/to/project/books/templates/books/publisher_list.html
     163
    157164.. highlightlang:: html+django
    158165
    159166This template will be rendered against a context containing a variable called
Back to Top