From 61725377b34f9e6344a7f21e4329ae7a7f074159 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Fri, 28 Feb 2014 11:03:03 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20supe?= =?UTF-8?q?rTornado.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- superTornado.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superTornado.py b/superTornado.py index 09c26fc..beb49c4 100644 --- a/superTornado.py +++ b/superTornado.py @@ -23,7 +23,7 @@ class BaseHandler(tornado.web.RequestHandler): class MainHandler(BaseHandler): def get(self): - self.render_string("index.html") + self.render("index.html") def post(self): iden = self.get_argument("id","") mdp = self.get_argument("mdp","") @@ -128,6 +128,7 @@ application = tornado.web.Application([ (r"/unauthorized", UnauthorizedHandler), (r"/disconnection", DisconnectionHandler), (r"/socket", WSocketHandler), + (r"/static/(.*)", web.StaticFileHandler, {"path": "/home/vmproxy/Bureau/ptut/"}) ], cookie_secret="1213215656") if __name__ == "__main__":