Skip to content

Instantly share code, notes, and snippets.

@RiceeeChang
Created May 31, 2015 06:26
Show Gist options
  • Save RiceeeChang/bd6c58f62bca3f75d3c5 to your computer and use it in GitHub Desktop.
Save RiceeeChang/bd6c58f62bca3f75d3c5 to your computer and use it in GitHub Desktop.
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!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment