modifié: superTornado.py
This commit is contained in:
parent
77d607f872
commit
0af77e2c43
@ -3,12 +3,12 @@ import tornado.web
|
||||
|
||||
class MainHandler(tornado.web.RequestHandler):
|
||||
def get(self):
|
||||
self.write("Hello, world")
|
||||
self.render("site/index.html")
|
||||
|
||||
application = tornado.web.Application([
|
||||
(r"/", MainHandler),
|
||||
])
|
||||
|
||||
if __name__ == "__main__":
|
||||
application.listen(8888)
|
||||
application.listen(80)
|
||||
tornado.ioloop.IOLoop.instance().start()
|
||||
|
Reference in New Issue
Block a user