나는 모든 사회 공급자에 대한 템플릿 페이지를 탐색 할 때 난 그냥 장고 - allauth를 설치 완료하고 나는 다음과 같은 메시지를 수신하고 있습니다 :장고 - 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>
여기에 누락 된 코드가 있습니다. 어딘가에 API는'.get()'을 사용하여 dict처럼 접근하려고하는 튜플을 리턴한다. 튜플은 예를 들어'myTuple [0]'과 같은 인덱스에 의해 접근됩니다. –