Saturday, March 12, 2022

Re: Reusable django templates

On 12 Mar 2022, at 17:43, Heman Okumbo wrote:

> 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.

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

--
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+unsubscribe@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.

No comments:

Post a Comment