Hi
I'm working through a webpy tutorial [1] and I've run into a problem.
All the code samples in the tutorial work fine for me but when I add
the next two pieces of code my browser gives me an internal server
error:
--------------------
class hello:
def GET(self):
return render.hello("Templates demo", "Hello", "A long time ago...")
class bye:
def GET(self):
return render.bye("Templates demo", "Bye", "14", "8", "25", "42", "19")
--------------------
Here's the code of my hello.py file:
--------------------
import web
urls = (
'/', 'hello',
'/bye/', 'bye')
application = web.application(urls, globals()).wsgifunc()
render = web.template.render('templates/')
class hello:
def GET(self):
return render.hello("Templates demo", "Hello", "A long time ago...")
class bye:
def GET(self):
return render.bye("Templates demo", "Bye", "14", "8", "25", "42", "19")
if __name__ == "__main__":
app.run()
--------------------
I'm using WSGI on windows.
Any help would be appreciated.
[1] http://webpy.org/tutorial3
--
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en.