old_contents: def get_url():
      return reverse('openid-provider-xrds')
  
  def openid_meta(request):
      context = {
          'openid_server': context['request'].build_absolute_uri(get_url())
      }
      content = '''<meta http-equiv="X-XRDS-Location" content="%(openid_server)s"/>
      <meta http-equiv="X-YADIS-Location" content="%(openid_server)s" />
  ''' % context
      return { 'openid_meta': context }
  
new_contents: from django.core.urlresolvers import reverse
  
  def get_url():
      return reverse('openid-provider-xrds')
  
  def openid_meta(request):
      context = {
          'openid_server': request.build_absolute_uri(get_url())
      }
      content = '''<meta http-equiv="X-XRDS-Location" content="%(openid_server)s"/>
      <meta http-equiv="X-YADIS-Location" content="%(openid_server)s" />
  ''' % context
      return { 'openid_meta': content }
  
subject: Remove dependency on openid in the base template (bis)