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. What is the rationale for not allowing conditional blocks? -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
