Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. url(r'social-auth/', include('social_django.urls', namespace='social')),
  2.  
  3. {% for name in social_auth.backends.oauth %}
  4. <li><a rel="nofollow" href="{% url "socialauth_begin" %}">{{ name|title }}</a></li>
  5. {% endfor %}
  6.  
  7. AUTHENTICATION_BACKENDS = (
  8. 'social_core.backends.open_id.OpenIdAuth', # for Google authentication
  9. 'social_core.backends.google.GoogleOpenId', # for Google authentication
  10. 'social_core.backends.google.GoogleOAuth2', # for Google authentication
  11. 'django.contrib.auth.backends.ModelBackend',
  12. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement