3 messages in com.googlegroups.pylons-discussRe: 0.9.6rc2 templates
FromSent OnAttachments
Lee Connell19 Jul 2007 19:41 
Philip Jenvey23 Jul 2007 11:14 
Lee Connell23 Jul 2007 14:42 
Subject:Re: 0.9.6rc2 templates
From:Lee Connell (lee.@public.gmane.org)
Date:07/23/2007 02:42:01 PM
List:com.googlegroups.pylons-discuss

Philip,

Thanks for reply, I tried that when I spoke to you on IRC and it worked no problems.

On 7/23/07, Philip Jenvey <pjen@public.gmane.org>
wrote:

On Jul 19, 2007, at 7:41 PM, Lee Connell wrote:

I am trying to follow the tutorial for pylons using this version, however there is no templates directory in my project. I created this directory and put my templates in there. Pylons starts my project find but when i return a render of my template it complains it can't find it. helloworld/helloworld/templates/serverinfo.html. Here is the output.

Module helloworld.controllers.hello:16 in serverinfo << def serverinfo(self): return render('/serverinfo.html')>> return render('/ serverinfo.html')

You've set your default templating engine to genshi, but you're referring to the template via a URI (with a proceeding slash). You can't use that notation with genshi, so you want:

return render('serverinfo.html')