I am trying to work with django-allauth. I followed the instructions at github page and done following:
Added allauth urls into urls.py
urlpatterns += patterns ('', url('^accounts/', include('allauth.urls')), url('^accounts/profile/$', ProfileView.as_view(), name='ProfileView'), url('^login/$', login, name='account_login'), url('^logout/$', logout, name='account_logout'), url('^login/cancelled/$', login_cancelled, name='socialaccount_login_cancelled'), url('^login/error/$', login_error, name='socialaccount_login_error'), )
Updated
TEMPLATE_CONTEXT_DIRS
,TEMPLATE_CONTEXT_PROCESSORS
,AUTHENTICATION_BACKENDS
andINSTALLED_APPS
. Also addedACCOUNT_AUTHENTICATION_METHOD = "username_email"
Added Key and Secret for twitter in the Social apps table.
Copied django-allauth templates to my app's directory and modified it. I can see all the templates working fine like
/accounts/signup/
and/accounts/social/connections/
.
Now, from connections or signup when I click Twitter link /accounts/twitter/login/
I ended up with the following error:
Social Network Login Failure
An error occured while attempting to login via your social network account.
Am I missing something? May be some stupid mistake (Twitter login url? No clues!). I also tried to find some tutorials based on the latest codebase but unable to find any. django-allauth example on github wasn't of any help. Please help. Also, please feel free to provide me any links or tutorials based on the latest codebase.
Thanks in advance.