modifié: superTornado.py
This commit is contained in:
parent
96da224f28
commit
7dc1645680
@ -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__":
|
||||
|
Reference in New Issue
Block a user