Django: cannot pass variable to included template?
- by duy
Hi,
I got a problem where I want to use template including in Django.
Here is the real example:
I got 3 file: home.html (will get the context variable passed from Views), base.html (the skeleton template file) and the header.html (included by base.html).
If if put the code below directly in base.html without including the header.html, the…