def provider_xrds(request):
 response = render_to_response('xrds.xml', {'url': get_xrds_url('login', request)}, content_type='text/xml')
 response['X-XRDS-Location'] = get_xrds_url('xrds', request)
 return response

def provider_xrds ( request ) : response = render_to_response ( 'xrds.xml' , { 'url' : get_xrds_url ( 'login' , request ) } , content_type = 'text/xml' ) response [ 'X-XRDS-Location' ] = get_xrds_url ( 'xrds' , request ) return response
xrds for endpoint discovery .