Beispiel #1
0
def problem_detail(request, problem_id):
    """ Return the problem details by problem_id. """
    try:
        context = logic.get_problem_details(request, problem_id)
    except Exception as e:
        return HttpResponseRedirect("/problems/")
    return render(request, "problems/problem_detail.html", context)
Beispiel #2
0
def problem_detail(request, problem_id):
    """ Return the problem details by problem_id. """
    context = logic.get_problem_details(request, problem_id)
    print context
    return render(request, 'problems/problem_detail.html', context)