Take a poll application for example.
There is a "poll_result.html" template that will be used in different
templates, such as latest_polls.html and hottest_polls.html.
How can I achieve that?
In "poll_result.html", can I add both " {% extends "latest_polls.html"
%}" and "" {% extends "hosttest_polls.html" %}"" in it?
On 2月24日, 下午11时14分, Mark Jones <[email protected]> wrote:
> It seems like maybe I don't understand the question but it willextend
> an infinite number of templates
>
> Just add {% extends "base.html" %} into everytemplateyou want toextend.
>
> You can even do {% extends "derived.html" %} which extends base.html
>
> On Feb 24, 8:41 am, lzhshen <[email protected]> wrote:
>
> > Suppose I have basetemplatecalled "base.html", can itextendmore
> > then two othertemplate, such as "a01.html" and "a02.html"?
>
> > Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---