/webapp/main.py |
---|
15,7 → 15,7 |
class Index(tornado.web.RequestHandler): |
def get(self): |
self.render("templates/index.html") |
self.redirect("/number") |
class Number(tornado.web.RequestHandler): |
def get(self): |
69,4 → 69,4 |
http_server = tornado.httpserver.HTTPServer(application) |
http_server.listen(1337) |
#tornado.autoreload.start() |
tornado.ioloop.IOLoop.instance().start() |
tornado.ioloop.IOLoop.instance().start() |
/webapp/templates/number.html |
---|
17,4 → 17,4 |
<script type="text/javascript"> |
document.getElementById("num").focus(); |
</script> |
{% end %} |
{% end %} |