Wednesday, January 20, 2010

Can I wrap the "extends" tag in an "if" tag?

Can I wrap the "extends" tag in an "if" tag? I tried it but I get:

Invalid block tag: 'endif'

{% if show_header %}
{% extends "base.html" %}
{% endif %}

Is there another way of doing this? I want my view to control whether
the header is displayed or not. Thanks

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate