Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Facebook login (NoReverseMatch: Reverse for 'socialaccount_signup') #558

Closed
e7mac opened this issue Mar 5, 2014 · 1 comment
Closed

Comments

@e7mac
Copy link

e7mac commented Mar 5, 2014

While trying to log in with Facebook's login_by_token method, I get the following error:

NoReverseMatch: Reverse for 'socialaccount_signup' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

and stack trace:

  File "/usr/local/lib/python2.7/dist-packages/allauth/socialaccount/helpers.py", line 119, in complete_social_login
return _complete_social_login(request, sociallogin)

  File "/usr/local/lib/python2.7/dist-packages/allauth/socialaccount/helpers.py", line 130, in _complete_social_login
ret = _process_signup(request, sociallogin)

  File "/usr/local/lib/python2.7/dist-packages/allauth/socialaccount/helpers.py", line 29, in _process_signup
url = reverse('socialaccount_signup')

On digging in to the function, I realized that it's trying to get SOCIALACCOUNT_AUTO_SIGNUP (=True) from the adapter but is getting it as False even though the default value is True. I explicitly set it to be True, but it still gave the same error.

I have it working for now, by removing the check in allauth/socialaccount/helpers.py", line 130, in _complete_social_login

@e7mac e7mac closed this as completed Mar 5, 2014
@e7mac e7mac reopened this Mar 5, 2014
@pennersr
Copy link
Owner

pennersr commented Mar 6, 2014

This is basic functionality which is covered by the test suite, so I really suspect something wrong in your setup. Could it be that you have two Django apps both named facebook?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants