Reusable django templates

24 views
Skip to first unread message

Heman Okumbo

unread,
Mar 12, 2022, 12:46:35 PM3/12/22
to django...@googlegroups.com
How comes I'm not able to modify my templates after extending from a base template.eg can't add extra contents,the template only display contents of the inherited template.

Clive Bruton

unread,
Mar 12, 2022, 1:37:20 PM3/12/22
to django...@googlegroups.com
Some code might help. It's not really clear to me what you are asking.

But at a guess, you can use the {% include … %} template function to
extend templates.


-- Clive

Heman Okumbo

unread,
Mar 14, 2022, 3:48:24 AM3/14/22
to django...@googlegroups.com
Can't customize individual templates:the templates inherit all the properties of the base template  eg styling and content.I am not able to add custom content to the template that inherits from base template.

--
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 django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2B3DC48B-D567-45A9-B182-66D13D81B4AF%40indx.co.uk.
Reply all
Reply to author
Forward
0 new messages