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
-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to