On Fri, Apr 10, 2009 at 12:05 AM, Sebastian <ritter.sebast...@gmail.com> wrote:
>
> Rory and I have applied patch 6646 to our Django installation (1.0-
> final-SVN-unknown). Although the patch works as described, the
> following no longer works:
>
> if the included template also 'extends' from a base template the
> following error occurs:
>
> Exception Type:         TemplateSyntaxError
> Exception Value:        'extends' cannot appear more than once in the same
> template
>
> Although I have not spent any time trying to understand the patch
> itself, I can only assume that it parses the templates nodes in the
> include file at the same time as the parent template. As expected this
> causes the above error.
>
> A quick fix I found is that if you wrap the include in a conditional
> statement (ie something like {% ifequal 1 1 %}) the error no longer
> occurs.
>
> Sorry for continuing to post on django-developers, but we thought it
> was worth letting you know about the issues we've encountered.

Thanks. The best option here would be to post these notes to the
ticket itself - that way, the detail won't get lost when someone is
sufficiently enthused to try working on the ticket.

Yours,
Russ Magee %-)

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

Reply via email to