see http://pylonshq.com/tracebacks/8d68f6a57870c3db4adb1efb35578fe9
i have comment it

in your “config/environment.py”
see if the import section
“from mako.lookup import TemplateLookup” exists


maybe you didn't enable mako when you create project

2010/5/27 Bruce Wade <[email protected]>

> That is strange you should probably reinstall Pylons. Then when you create
> a new project Mako will be the default template engine.
>
>
> On Wed, May 26, 2010 at 7:46 PM, blcArmadillo <[email protected]>wrote:
>
>> 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]<pylons-discuss%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/pylons-discuss?hl=en.
>>
>>
>
>
> --
> --
> Regards,
> Bruce Wade
> http://ca.linkedin.com/in/brucelwade
> http://www.wadecybertech.com
> http://www.warplydesigned.com
> http://www.fitnessfriendsfinder.com
>
> --
> 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]<pylons-discuss%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>

-- 
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