Django-allauth设置

时间:2013-02-10 18:36:02

标签: django django-authentication django-socialauth django-allauth

我刚刚完成安装django-allauth,当我导航到所有社交提供商的模板页面时,我收到以下消息:

AttributeError at /account/facebook/login/
'tuple' object has no attribute 'get'

settings.social_account_providers

SOCIALACCOUNT_PROVIDERS = ( 
{'facebook':
  {'SCOPE': ['email', 'publish_stream'], 
   'FB_LOGIN': {'auth_type': 'reauthenticate'},
   'METHOD': 'js_sdk'}},
{ 'twitter':
    { 'SCOPE': ['r_emailaddress'] } },
{ 'google':
    { 'SCOPE': ['https://www.googleapis.com/auth/userinfo.profile']}},
{ 'linkedin':
    { 'SCOPE': ['r_emailaddress'] }}  

HTML

<a method="js_sdk" href="{% provider_login_url "Facebook" %}"></a>

0 个答案:

没有答案