Re: filters should throw exceptions

2008-04-21 Thread David Durham, Jr.
On Mon, Apr 21, 2008 at 1:06 PM, Peter Rowell <[EMAIL PROTECTED]> wrote: > From http://www.djangoproject.com/documentation/templates/#variables > > If you use a variable that doesn't exist, the template system will > insert the value of the TEMPLATE_STRING_IF_INVALID setting, which is > set to

Re: filters should throw exceptions

2008-04-21 Thread Peter Rowell
From http://www.djangoproject.com/documentation/templates/#variables If you use a variable that doesn’t exist, the template system will insert the value of the TEMPLATE_STRING_IF_INVALID setting, which is set to '' (the empty string) by default. So you could at least define this to be something

filters should throw exceptions

2008-04-21 Thread David Durham, Jr.
Hi all, I'm new to working with Django so forgive my newness. I'm reading through chapter 10 of the free online django book, and I've come across the statement that filter should silently ignore errors. I disagree with this. I think they ought to raise exceptions, and the site should be config