Ninety Nine Webpy Problems

last modified: September 11, 2009

in response to NinetyNineWebFrameworkProblems


PO1

http://webpy.org/cookbook/helloworld

import web

urls = ("/.*", "hello")
app = web.application(urls, globals())

class hello:
    def GET(self):
        return 'Hello, world!'

if __name__ == "__main__":
    app.run()

Loading...