Commits

Anonymous committed aea8184

absolute path

  • Participants
  • Parent commits e18269c

Comments (0)

Files changed (1)

example/templates/base.html

         <title>django-authopenid Example App</title>
 
         <meta http-equiv="content-type" content="text/html; charset=utf-8">
-        <meta http-equiv="X-XRDS-Location" content="{% url oid_xrdf %}">  
+        {% if request.is_secure %}
+        <meta http-equiv="X-XRDS-Location" content="https://{{ request.get_host }}{% url oid_xrdf %}">
+        {% else %}
+        <meta http-equiv="X-XRDS-Location" content="http://{{ request.get_host }}{% url oid_xrdf %}">  
+        {% endif %}
+
         <link rel="stylesheet" href="{{ MEDIA_URL }}/css/base.css" />
         <link rel="stylesheet" href="{{ MEDIA_URL }}/css/openid.css" />
         {% block head %}