Re: Templates extending themselves cause infinite recursion

2008-09-06 Thread Simon Willison
I wrote up a work-around for this issue a while ago. If you need to be able to over-ride your "base.html" template with a new template also called "base.html" you can do it by adding an overall parent directory to your TEMPLATE_DIRS setting which allows you to provide a fully qualified path to

Re: Templates extending themselves cause infinite recursion

2008-09-06 Thread Robert Lofthouse
That's funny, as I was just talking about this with a few people at the TWID party last night. We had this problem at GCap and in a lot of cases (depending on your architecture) you do actually want to say {% extends "base.html" %} where the file is base.html, but the logic should be clever

Re: Templates extending themselves cause infinite recursion

2008-09-05 Thread Martin Ostrovsky
David, No error message appears for me (on OS X). Python just crashes. Is this ticket worthy? On Sep 5, 2:34 am, David Cramer <[EMAIL PROTECTED]> wrote: > Does the error message pretty easily let you figure out what's wrong? > > On Aug 31, 1:38 pm, Martin Ostrovsky <[EMAIL PROTECTED]> > wrote:

Re: Templates extending themselves cause infinite recursion

2008-09-05 Thread Jeremy Dunck
On Fri, Sep 5, 2008 at 8:52 AM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Fri, Sep 5, 2008 at 2:34 AM, David Cramer <[EMAIL PROTECTED]> wrote: >> >> Does the error message pretty easily let you figure out what's wrong? > > A problem I've seen with infinite recursion is that while it may

Re: Templates extending themselves cause infinite recursion

2008-09-05 Thread Karen Tracey
On Fri, Sep 5, 2008 at 2:34 AM, David Cramer <[EMAIL PROTECTED]> wrote: > > Does the error message pretty easily let you figure out what's wrong? > A problem I've seen with infinite recursion is that while it may manifest itself pretty clearly on one platform, the same root problem may show

Re: Templates extending themselves cause infinite recursion

2008-09-05 Thread David Cramer
Does the error message pretty easily let you figure out what's wrong? On Aug 31, 1:38 pm, Martin Ostrovsky <[EMAIL PROTECTED]> wrote: > Now I'm not sure if this is a bug worth squashing or more a case of if > you're dumb, you deserve what you get but ... I erroneously extended a > template with