Skip to content

Instantly share code, notes, and snippets.

@RiceeeChang
Created May 31, 2015 06:26

Revisions

  1. RiceeeChang created this gist May 31, 2015.
    10 changes: 10 additions & 0 deletions gistfile1.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    class Application(tornado.web.Application):
    def __init__(self):
    handlers = [(r"/", BaseHandler),
    (r"/scheduler", SchedulerHandler)]
    settings = dict()
    super(Application, self).__init__(handlers, **settings)

    class BaseHandler(tornado.web.RequestHandler):
    def get(self):
    self.write("Hello, world!")