def render_to_text(*args, **kwargs):
 return HttpResponse(loader.render_to_string(*args, **kwargs), content_type='text/plain')

def render_to_text ( * args , ** kwargs ) : return HttpResponse ( loader . render_to_string ( * args , ** kwargs ) , content_type = 'text/plain' )
renders the response using the mime type for plain text .