1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import web urls = ( '/', 'index' ) app = web.application(urls, globals()) class index: def GET(self): greeting = "Hello World" return greeting if __name__ == "__main__": app.run()