#!/usr/local/bin/python2.6 # -*- coding: UTF-8 -*- import web #from tornadohacks.webpy import asynchronous, async_callback, tornadorun web.config.debug = False urls = ('/(.*)', 'index') class index(object): def GET(self, name): if not name: name = 'world' return 'Hello %s' % name app = web.application(urls, globals(), autoreload = False) def abc(f, a=None): web.wsgi.runfcgi(f, a) web.wsgi.runwsgi = abc if __name__ == "__main__": app.run() #tornadorun(app, 8080)