Hi, Try changing your import for rendering to this:
from templatedemo.lib.base import BaseController, render then remove your line: from pylons.templating import render_mako as render Regards, Bruce On Wed, May 26, 2010 at 7:22 PM, 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 traceback > http://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]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
