#26376: Docs for `get_template_names`
-------------------------------------+-------------------------------------
     Reporter:  guettli              |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Documentation        |                  Version:  1.9
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by guettli):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Old description:

> I am missing what "search" means in the current docs of
> `get_template_names`:
>
> >    Returns a list of template names to search for when rendering the
> template.
> >    If template_name is specified, the default implementation will
> return a list containing template_name (if it is specified).
>
> https://docs.djangoproject.com/en/1.9/ref/class-based-views/mixins-
> simple/#django.views.generic.base.TemplateResponseMixin.get_template_names
>
> What kind of searching does happen here?
>
> I don't understand why a list gets returned and not a single name.

New description:

 I am missing what "search" means in the current docs of
 `get_template_names`:

 > Returns a list of template names to search for when rendering the
 template.
 > If template_name is specified, the default implementation will return a
 list containing template_name (if it is specified).

 https://docs.djangoproject.com/en/1.9/ref/class-based-views/mixins-
 simple/#django.views.generic.base.TemplateResponseMixin.get_template_names

 What kind of searching does happen here?

 I don't understand why a list gets returned and not a single name.

--

--
Ticket URL: <https://code.djangoproject.com/ticket/26376#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.45f17e94f8fa2ec3ed3362377ba5bc89%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to