Wednesday, October 28, 2015

Re: include template which extends something else

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBCAAGBQJWMPQiAAoJEC0ft5FqUuEh8EEQAJdXeq91OTpANLE0u9rtwow7
wyGsvbvULM65C/0FUC8GVf0z7HSQ68ENcHbSNqPCVCFI3xDltSfYyoYWCwpiz+01
pPKDAQDQ8JKM75PJtig9S07oyxtjNFmXC9d0xnL9N6A9lc7Bjqh6DRghN0cYfC/I
7SK98fozH0jof+cu6tQnNzpjhdmM7Mwosq8Ke8b8sD0d6WB+R437Q8eA7uX6YArZ
1EREbRYGvYKlMPbFtFVXaZVfDPO2BqW5B1HgVr16GlxocyEVIJtKid3UFSDOXqD1
0H8aWb1abYouFa2AxSCziUE1mx5Oq7bhTMJYoyQGKfmiUUBBksJgc3tyZmjnuDnc
5LKwH0TL7zYug7UD5h3xDiuYoJ/HkARlzO3XtCh0pRuJu+prEqAEB4RNaB7+3k/j
Hmd508/PR53ABC4pP2TZnQWFhISqx9TiGPzEHpbl/isw+j4k40E9yaRGAJt7+0bA
KHg6+Oxhu7P3w8UY7d/AMsFXQGFDQs7+JdaRHB4A6t7trhao8HvU3zfBRpgylZzp
jTBKwmfTRpbA2P/YcsrbWNHJSWZMo/Cn0yeOnQ2UDk2C5lHdSRnVfL8xgc7yCUVu
j4Sh5VWXdD0JjRsm9uvG71tr7Zx0cEPP0fVPbO0BjX+2FPjj6phQ4vQoSQvfZpWZ
0gIJ+4uQPsaDNuiR6w0H
=EUXv
-----END PGP SIGNATURE-----
On 10/28/2015 10:11 AM, Sven Wanner wrote:
> Ok, it's a pitty, but you're totally right. Using if in my template
> should be also fine. Not of that elegance I planned ;) , but will
> definitely work, too.

I'm not sure what you mean. I thought I just explained how you can use
`extends` in an included template -- I think that should work just fine
for your use case (and I just tested to verify that it does work).

Carl

--
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5630F421.2020906%40oddbird.net.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment