modifié: site/index.html

modifié:         superTornado.py
This commit is contained in:
sidya82
2014-02-27 16:24:53 +01:00
parent 0af77e2c43
commit 6ad28b54a4
2 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,10 @@ import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.render("site/index.html")
def post(self):
iden = self.get_argument("id")
mdp = self.get_argument("mdp")
self.write("Le pseudo est :", iden)
application = tornado.web.Application([
(r"/", MainHandler),