ValueError at /accounts/login/
**need more than 1 value to unpack**
Request Method: GET
Request URL: http://localhost:8000/accounts/login/
Django Version: 1.6
Exception Type: ValueError
Exception Value:
need more than 1 value to unpack
Exception Location: C:\xampp\htdocs\Aptana Workspace\ktj14\allauth\utils.py in import_attribute, line 76
This is the error messsage i get with {% providers_media_js %}
my settings.py file
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.request',
'django.contrib.auth.context_processors.auth',
'allauth.account.context_processors.account',
'allauth.socialaccount.context_processors.socialaccount'
)
AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend',
'allauth.account.auth_backends.AuthenticationBackend',
)
SOCIALACCOUNT_PROVIDERS = {
'facebook':{ 'SCOPE':['email'],
'AUTH_PARAMS':{'auth_type':'reauthenticate'},
'METHOD':'js_sdk',
'LOCALE_FUNC':'en-US'
},
'google':{ 'SCOPE':['email'],
'AUTH_PARAMS':{'auth_type':'reauthenticate'},
'METHOD':'js_sdk',
'LOCALE_FUNC':'en-US'
}
}
These are the allauth related settings i've used. allauth is added in the INSTALLED_APPS