I found out that for some reason when I ran paster to setup the
project it didn't use Mako for the template engine so there where no
configuration settings for Mako.

On May 27, 2:22 am, blcArmadillo <[email protected]> wrote:
> I'm just starting to get into web development with python and pylon
> after years of PHP development. I'm trying to follow the Pylons Book
> however I've quickly run into a problem. Whenever I try using the
> template engine (Mako) I get the error "AttributeError: 'Globals'
> object has no attribute 'mako_lookup'" Here is my 
> tracebackhttp://pylonshq.com/tracebacks/8d68f6a57870c3db4adb1efb35578fe9. And
> the code I'm trying to run is:
>
> import logging
>
> from pylons import request, response, session, tmpl_context as c
> from pylons.controllers.util import abort, redirect_to
> from pylons.templating import render_mako as render
>
> from templatedemo.lib.base import BaseController
>
> log = logging.getLogger(__name__)
>
> class GreetingController(BaseController):
>
>     def index(self):
>         c.name = 'Pylons Developer'import logging
>
> from pylons import request, response, session, tmpl_context as c
> from pylons.controllers.util import abort, redirect_to
> from pylons.templating import render_mako as render
>
> from templatedemo.lib.base import BaseController
>
> log = logging.getLogger(__name__)
>
> class GreetingController(BaseController):
>
>     def index(self):
>         c.name = 'Pylons Developer'
>         return render('/greeting.html')
>         return render('/greeting.html')

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to