'A short method to render_to_response that renders response.'

def render_response(self):

    if self.request.is_ajax():
        return JsonResponse(self.context)
    return render_to_response(self.template, self.context)
