def post(self): newGame = Game(name=self.request.get('gameName'), state='creating') newGame.put() self.redirect("/?gameKey=" + str(newGame.key()))