@login_required
@require_http_methods(['GET'])
def learner_profile(request, username):
 try:
  return render_to_response('student_profile/learner_profile.html', learner_profile_context(request, username, request.user.is_staff))
 except (UserNotAuthorized, UserNotFound, ObjectDoesNotExist):
  raise Http404

@ login_required @ require_http_methods ( [ 'GET' ] ) def learner_profile ( request , username ) : try : return render_to_response ( 'student_profile/learner_profile.html' , learner_profile_context ( request , username , request . user . is_staff ) ) except ( UserNotAuthorized , UserNotFound , ObjectDoesNotExist ) : raise Http404
render the profile page for the specified username .