I figured it out. If you ever load Google App Engine on your PC.
Web.py automatically assumes you are using it. Then you have to
compile the templates directory as if it were going to be on Google
App Engine

On Sep 15, 9:14 am, Francois Dion <francois.d...@gmail.com> wrote:
> Did you create a template directory or a templates directory? You say you
> have the template directory set up, it should be templates
>
>
>
>
>
>
>
> On Friday, September 14, 2012 2:29:18 PM UTC-4, Pete D wrote:
>
> > I ran the simple code from the tutorial for templates on a PC and I keep
> > getting the following error
>
> > ImportError: No module named templates
>
> > whenever I do this render = web.template.render('templates/')
> > I have the template directory set up with an html file in it.
>
> > Here is the code
> > import web
>
> > render = web.template.render('templates/')
>
> > urls = (
> >     '/', 'index'
> > )
>
> > class index:
> >     def GET(self):
> >         return render.base()
>
> > if __name__ == "__main__":
> >     app = web.application(urls, globals())
> >     app.internalerror = web.debugerror
> >     app.run()

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to webpy@googlegroups.com.
To unsubscribe from this group, send email to 
webpy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to