]> git.parisson.com Git - django-social-auth.git/commitdiff
Updating templates for latest syntax.
authorStas Kravets <skravets@applebough.(none)>
Mon, 11 Jul 2011 08:45:45 +0000 (12:45 +0400)
committerStas Kravets <skravets@applebough.(none)>
Mon, 11 Jul 2011 08:45:45 +0000 (12:45 +0400)
example/local_settings.py.template
example/templates/done.html
example/templates/home.html

index b0583aac689e47c5e6d7f1578efcd386421963d7..c1b37c68210ea1f40983acf0bd87f9991607e802 100644 (file)
@@ -11,7 +11,7 @@ GOOGLE_OAUTH2_CLIENT_SECRET       = ''
 SOCIAL_AUTH_CREATE_USERS          = True
 SOCIAL_AUTH_FORCE_RANDOM_USERNAME = False
 SOCIAL_AUTH_DEFAULT_USERNAME      = 'socialauth_user'
-SOCIAL_AUTH_COMPLETE_URL_NAME     = 'complete'
+SOCIAL_AUTH_COMPLETE_URL_NAME     = 'socialauth_complete'
 LOGIN_ERROR_URL                   = '/login/error/'
 VKONTAKTE_APP_ID                  = ''
 VKONTAKTE_APP_SECRET              = ''
index 974fbecce14e17ecff2966c7ab7817b278fdfb55..a6e27c100bf80270f60723eaed0eaf6fa67f1f07 100644 (file)
   {% for name, backend in backends.oauth %}
     <li><a rel="nofollow" href="{% url socialauth_associate_begin name %}">{{ name|title }}</a></li>
   {% endfor %}
-         <li><a rel="nofollow" href="{% url associate_begin "odnoklassniki" %}">Odnoklassniki OAuth 2.0</a></li>
-         {% if odnoklassniki %}<span class="disconnect">(<a href="{% url disconnect "odnoklassniki" %}">disconnect</a>)</span>{% endif %}
-         <li><a rel="nofollow" href="{% url associate_begin "vkontakte-oauth2" %}">VKontakte OAuth 2.0</a></li>
-         {% if vkontakte_oauth2 %}<span class="disconnect">(<a href="{% url disconnect "vkontakte-oauth2" %}">disconnect</a>)</span>{% endif %}
-         <li><a rel="nofollow" href="{% url associate_begin "mailru-oauth2" %}">Mail.ru OAuth 2.0</a></li>
-         {% if mailru_oauth2 %}<span class="disconnect">(<a href="{% url disconnect "mailru-oauth2" %}">disconnect</a>)</span>{% endif %}
   </ul>
 
   <h3>Associate new <a href="http://tools.ietf.org/html/draft-ietf-oauth-v2-10" title="OAuth2">OAuth2</a> credentials:</h3>
@@ -67,7 +61,7 @@
       </form>
     </li>
     <li>
-      <form action="{% url associate_begin "yandex" %}" method="post">{% csrf_token %}
+      <form action="{% url socialauth_associate_begin "yandex" %}" method="post">{% csrf_token %}
         <div>
           <label for="openid_ya_user">Yandex user
             {% if yandex %}(<span class="disconnect"><a href="{% url disconnect "yandex" %}">disconnect</a>)</span>{% endif %}
index ab10673ded2403eaf9703c09616ea15bf7746e4c..5d3717e94596a95680f5ca52b43a04f4ce0019bc 100644 (file)
@@ -18,8 +18,6 @@
   {% for name, backend in backends.oauth2 %}
     <li><a rel="nofollow" href="{% url socialauth_begin name %}">{{ name|title }}</a></li>
   {% endfor %}
-       <li><a rel="nofollow" href="{% url begin "vkontakte-oauth2" %}">VKontakte OAuth 2.0</a></li>
-       <li><a rel="nofollow" href="{% url begin "mailru-oauth2" %}">Mail.ru OAuth 2.0</a></li>
   </ul>
 </div>
 
@@ -51,9 +49,9 @@
         </div>
       </form>
     </li>
-       <li><a rel="nofollow" href="{% url begin "yandex" %}">Yandex OpenID 2.0</a></li>
+       <li><a rel="nofollow" href="{% url socialauth_begin "socialauth_begin" %}">Yandex OpenID 2.0</a></li>
     <li>
-<form action="{% url socialauth_begin "openid" %}" method="post">{% csrf_token %}
+    <form action="{% url socialauth_begin "openid" %}" method="post">{% csrf_token %}
         <div>
           <label for="openid_identifier">Other provider</label>
           <input id="openid_identifier" type="text" value="" name="openid_identifier" />
@@ -68,7 +66,7 @@
 <div>
   <h3>Login using other authentication systems:</h3>
        <ul>
-               <li><a rel="nofollow" href="{% url begin "vkontakte" %}">VKontakte OpenAPI</a></li>
+               <li><a rel="nofollow" href="{% url socialauth_begin "vkontakte" %}">VKontakte OpenAPI</a></li>
        </ul>
 </div>
 {% endblock %}