On 4/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I tried a bit more, and found out that: > - {{var}} and {% if %} (and maybe some more) work. > - {% extends %} and {% block %} throw the exception above. > > what can I do to make "extends" and "block" work ?
I believe that you can't use {% block %} in a template that you render, unless it uses {% extend %} as well, and in this case, the template that you extend has to be loadable by django (by one of the installed template loaders). I think that the only way to extend a template that you have constructed yourself would be to have a template loader which searched some sort of dictionary of previously-build template objects, but I don't think that's available in django right now. I'd love to be proven wrong, however. That would come in handy in so many places. Ian Clelland <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---