def xrdf(request, template_name='authopenid/yadis.xrdf'):
 url_host = get_url_host(request)
 return_to = [('%s%s' % (url_host, reverse('user_complete_signin')))]
 response = render(template_name, {'return_to': return_to}, context_instance=RequestContext(request))
 response['Content-Type'] = 'application/xrds+xml'
 response['X-XRDS-Location'] = request.build_absolute_uri(reverse('oid_xrdf'))
 return response

def xrdf ( request , template_name = 'authopenid/yadis.xrdf' ) : url_host = get_url_host ( request ) return_to = [ ( '%s%s' % ( url_host , reverse ( 'user_complete_signin' ) ) ) ] response = render ( template_name , { 'return_to' : return_to } , context_instance = RequestContext ( request ) ) response [ 'Content-Type' ] = 'application/xrds+xml' response [ 'X-XRDS-Location' ] = request . build_absolute_uri ( reverse ( 'oid_xrdf' ) ) return response
view used to process the xrdf file .