Short answer:
You can't - at least not with extends. Extends is for one base template to
be used for all default things you need on a HTML template.

Long answer:
You can include templates in another template. If you have one template and
you need to include other templates in that template then you can use the
include template tag:
https://docs.djangoproject.com/en/2.1/ref/templates/builtins/#include

However you can only include templates and not views....

Regards,

Andréas


Den tors 6 sep. 2018 kl 04:35 skrev Rootz <[email protected]>:

> Can a child template have more than one parent template?
> I am using the the latest release for Django and I have several template
> to include
> in the one template file. How can I do so using template inheritance
> (using the default django template api) ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" 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].
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5110b6a9-6b53-4a7d-b235-34e967de4361%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/5110b6a9-6b53-4a7d-b235-34e967de4361%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" 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].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCeNXMgoBrmnaatOMSYQ0JFA2OSiX%3DWR_o3bGqnZGq9eoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to