Sorry, meant to post this in the developer area. On Feb 23, 12:46 pm, joep <joe.archet...@gmail.com> wrote: > This is in regard to this ticket,http://code.djangoproject.com/ticket/10975, > which states, in response to the user's complaint, that 'A block > cannot be defined conditionally within any sort of "if" construct, and > this is by design; the structure of the template is the structure of > the template. ' > > I fail to see the logic here. To give an example of what I was trying > to do, before I stumbled across this, is that I have a form with > several widgets, each of which has media (css and js) attached. I > include the form conditionally, which means I only also want to > include the media in the 'header' block conditionally. Is there some > obvious way to do this I am missing? What is the rationale for not > allowing conditional blocks?
-- 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.