title: "WARNING:tornado.access:404 POST /game (127.0.0.1) 1.96ms" while running my simple tornado script
body: <p>Here's my tornado script, it's me trying to understand how to grab user input from a browser and pass it back to the <code>Game</code> class.</p>
  
  <pre class="lang-python prettyprint-override"><code>import tornado.ioloop
  import tornado.web
  
  def applicationInit():
      return tornado.web.Application([
          (r"/", Game),
      ])
  
  class Game(tornado.web.RequestHandler):
      def get(self):
          self.write("You made it!")
          self.render("game.html")
  
      def post(self):
          if self.get_argument("keyinput") is not None:
              k = int(self.get_argument("keyinput"))
              print (k)
  
  app = applicationInit()
  app.listen(8080)
  print ("Starting...")
  tornado.ioloop.IOLoop.current().start()
  </code></pre>
  
  <p>... and here is my <code>game.html</code> that is referenced by the <code>Game.write()</code> in the <code>get</code> method.</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Pyablo&lt;/title&gt;
  
    &lt;/head&gt;
    &lt;body&gt;
  
    &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
  
           $(document).ready(function() {
              $(document).on("keydown", this, function(e){
                  var key = e.which;
                  switch (key)
                  {
                      case 87:
                          $.post("/game", { 'keyinput': '1' }, function(data) {
                              alert("You pressed UP. "+ data);
                          });
                  }
              });
           });
  
    &lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>So, I know much more about Python than I do jQuery/HTML/JavaScript. I am getting this error whenever I go to 127.0.0.1:8080...</p>
  
  <pre class="lang-none prettyprint-override"><code>WARNING:tornado.access:404 POST /game (127.0.0.1) 1.96ms
  </code></pre>
  
  <p>What am I missing?</p>