def show_solution(request, problem_id, solution_id): print "problem_id is: ", problem_id print "solution_id is: ", solution_id try: context = logic.get_solution_details(request, problem_id, solution_id) except Exception as e: return HttpResponseRedirect("/problems/" + str(problem_id)) return render(request, "problems/solution_detail.html", context)
def show_solution(request, problem_id, solution_id): print "problem_id is: ", problem_id print "solution_id is: ", solution_id context = logic.get_solution_details(request, problem_id, solution_id) return render(request, 'problems/show_solution.html', context)