python - tornado not redirecting to new dummy page
问题 I am using tornado and here is the code for my main handler - class MainHandler(tornado.web.RequestHandler): def get(self): self.render("homepage.html", messages=ChatSocketHandler.browser_cache) # # HTTP *POST* HANDLER # def post(self): print "Post received" post_body = self.get_argument("body") self.set_header("Content-Type", "text/plain") self.redirect("test.html") The test.html file is simple - <!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> <