def post(self): newGame = Game(name=self.request.get('gameName'), state='creating') newGame.put() self.redirect("/?gameKey=" + str(newGame.key()))
def get(self): template_values = { "games": Game.all(), } self.response.out.write(template.render('select_game.html', template_values))