def start_game(request): if request.method == 'GET': return render(request, 'init_game.html') if request.method == 'POST': game = Game.criar_novo_game() return redirect('play_game', pk=game.id)