Permalink
Browse files

initial hello-world commit

  • Loading branch information...
0 parents commit 794c3f9efba08bb2c5d3056143b5b7ea36d996b8 @smerritt committed Feb 9, 2012
Showing with 18 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +14 −0 app.py
  3. +3 −0 requirements.txt
@@ -0,0 +1 @@
+/venv
14 app.py
@@ -0,0 +1,14 @@
+import tornado.ioloop
+import tornado.web
+
+class MainHandler(tornado.web.RequestHandler):
+ def get(self):
+ self.write("Hello, world")
+
+application = tornado.web.Application([
+ (r"/", MainHandler),
+])
+
+if __name__ == "__main__":
+ application.listen(8888)
+ tornado.ioloop.IOLoop.instance().start()
@@ -0,0 +1,3 @@
+distribute==0.6.24
+tornado==2.2
+wsgiref==0.1.2

0 comments on commit 794c3f9

Please sign in to comment.