Re: TemplateDoesNotExist error when postmortem says it exists?

2009-03-29 Thread Russell Keith-Magee
On Mon, Mar 30, 2009 at 1:42 AM, Rob Hudson wrote: > > Wow, that was a tricky one to track down... ... > I take it that gets interpreted as a single value tuple.  D'oh!  That It does, operator precedence notwithstanding (for example, a lambda expression returning a tuple

Re: TemplateDoesNotExist error when postmortem says it exists?

2009-03-29 Thread Rob Hudson
Wow, that was a tricky one to track down... After putting debug output in django/template/loaders/filesystem.py I saw that filepath was set to: '/Users/rob/git/anglers/anglers/templates/('book/ search_form.html',)' I back tracked that and found that I had a trailing comma in my view code:

Re: TemplateDoesNotExist error when postmortem says it exists?

2009-03-29 Thread Rob Hudson
On Sun, Mar 29, 2009 at 8:28 AM, Karen Tracey wrote: > That generally means the permissions don't allow the code to access the > file.  You don't mention if this happens with the dev server (which would > surprise me, since you can load the template from the shell) or only

Re: TemplateDoesNotExist error when postmortem says it exists?

2009-03-29 Thread Karen Tracey
On Sun, Mar 29, 2009 at 11:18 AM, Rob Hudson wrote: > > This is a stumper... > > I have a very simple view that is a wrapper around the generic view > direct_to_template. The loader finds the template as indicated in the > output "(File exists)", but yet I still get a

TemplateDoesNotExist error when postmortem says it exists?

2009-03-29 Thread Rob Hudson
This is a stumper... I have a very simple view that is a wrapper around the generic view direct_to_template. The loader finds the template as indicated in the output "(File exists)", but yet I still get a TemplateDoesNotExist error. Any ideas? I can go to the Django shell and load it just