Tuesday, February 28, 2012

Is it able to nest block in a conditional tag in the template of Django 1.3?

Here is my need:

{% if request.user.is_csr %}
      {% block csr_block %}



{% endif %}

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/GwJ0AOf-DYYJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment