For some reason, I cannot use post methods in torando.
Even the hello_world example does not work when I change the message.
import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): def post(self): self.write("Hello, world") application = tornado.web.Application([ (r"/", MainHandler), ]) if __name__ == "__main__": application.listen(8888) tornado.ioloop.IOLoop.instance().start()
It prohibits method 405. Any suggestions?
source share