#26376 closed Cleanup/optimization (fixed)
Explain what "searching for a list of template names" means in TemplateResponse.Mixin.get_template_names() docs.
Reported by: | Thomas Güttler | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.9 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
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).
What kind of searching does happen here?
I don't understand why a list gets returned and not a single name.
Change History (5)
comment:1 by , 9 years ago
Description: | modified (diff) |
---|
comment:2 by , 9 years ago
Has patch: | set |
---|---|
Summary: | Docs for `get_template_names` → Explain what "searching for a list of template names" means in TemplateResponse.Mixin.get_template_names() docs. |
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 9 years ago
Yes "The first template that is found will be used." is more explicit than "searched". Thank you
Note:
See TracTickets
for help on using tickets.
If I add "The first template that is found will be used." does it help? There are several other places in Django that have similar behavior so it's not really a new concept.