@non_atomic_requests
def render_xml(request, template, context=None, **kwargs):
 if (context is None):
  context = {}
 rendered = render_xml_to_string(request, template, context)
 if ('content_type' not in kwargs):
  kwargs['content_type'] = 'text/xml'
 return HttpResponse(rendered, **kwargs)

@ non_atomic_requests def render_xml ( request , template , context = None , ** kwargs ) : if ( context is None ) : context = { } rendered = render_xml_to_string ( request , template , context ) if ( 'content_type' not in kwargs ) : kwargs [ 'content_type' ] = 'text/xml' return HttpResponse ( rendered , ** kwargs )
xml render function .