Tornado从入门到入门

 

 

 

遇到的问题:160129.debug设置为True 浏览器仍然无法更新修改

import tornado.ioloop
import tornado.web

class MainHandler(tornado.web.RequestHandler):
   def get(self):
       self.write("Hello8, !")
       self.render("home.html")

settings = {'debug' : True} if __name__ == "__main__":
   application = tornado.web.Application([
       (r"/", MainHandler),
   ],**settings)
   application.listen(8888)
   tornado.ioloop.IOLoop.current().start()

 

你可能感兴趣的:(Tornado从入门到入门)