diff --git a/superTornado.py b/superTornado.py index 7f068e7..39a737d 100644 --- a/superTornado.py +++ b/superTornado.py @@ -5,16 +5,16 @@ import tornado.httpserver class MainHandler(tornado.web.RequestHandler): def get(self): self.render("index.html") - -class LoginHandler(tornado.web.RequestHandler): def post(self): - #iden = self.get_argument("id",'') - #mdp = self.get_argument("mdp",'') - self.write("Le pseudo est :") + iden = self.get_argument("id",'') + mdp = self.get_argument("mdp",'') + self.write("Le pseudo est :", iden) + + + application = tornado.web.Application([ (r"/", MainHandler), - (r"/login", LoginHandler), ]) if __name__ == "__main__":