Skip to content

Instantly share code, notes, and snippets.

@ratazzi
Created August 7, 2010 05:32
Show Gist options
  • Save ratazzi/512476 to your computer and use it in GitHub Desktop.
Save ratazzi/512476 to your computer and use it in GitHub Desktop.
tornado_gae
#!/usr/bin/env python
# encoding=utf-8
import tornado.web
import tornado.wsgi
import wsgiref.handlers
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("It's running.")
if __name__ == "__main__":
application = tornado.wsgi.WSGIApplication([
(r"/", MainHandler),
])
wsgiref.handlers.CGIHandler().run(application)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment