GithubHelp home page GithubHelp logo

Comments (6)

omab avatar omab commented on September 27, 2024

Yes, /associate/backend-name/ is the correct path to trigger account associations, this is only for logged in users. Which error are you getting?

Matías

Edit: fix path broken by github markup

from django-social-auth.

m-misseri avatar m-misseri commented on September 27, 2024

These are the errors:

Traceback (most recent call last):

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/servers/basehttp.py", line 283, in run
self.result = application(self.environ, self.start_response)

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/contrib/staticfiles/handlers.py", line 68, in call
return self.application(environ, start_response)

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 273, in call
response = self.get_response(request)

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/handlers/base.py", line 169, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, _callback_args, *_callback_kwargs)

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, _args, *_kwargs)

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/social_auth/views.py", line 66, in associate
return auth_process(request, backend, complete_url)

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/social_auth/views.py", line 93, in auth_process
redirect = reverse(complete_url_name, args=(backend,))

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/urlresolvers.py", line 391, in reverse
_args, *_kwargs)))

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/urlresolvers.py", line 337, in reverse
"arguments '%s' not found." % (lookup_view_s, args, kwargs))

NoReverseMatch: Reverse for 'association_complete' with arguments '(u'google',)' and keyword arguments '{}' not found.

from django-social-auth.

omab avatar omab commented on September 27, 2024

Seems that you have this setting:

SOCIAL_AUTH_ASSOCIATE_URL_NAME = 'association_complete'

Default django-social-auth name for this view is associate_complete, not association_complete.

Are you trying to override the association view? If that is your case, then seems that you have a problem with your URLs setup and you aren't including the the module with such URL, or that you don't give it a name.

If this is not the case, then remove the setting, the app will use associate_complete by default.

from django-social-auth.

m-misseri avatar m-misseri commented on September 27, 2024

I have removed the:
SOCIAL_AUTH_COMPLETE_URL_NAME = 'social:complete'
SOCIAL_AUTH_ASSOCIATE_URL_NAME = 'social:association_complete'
but the errors are the same:

Traceback (most recent call last):

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/servers/basehttp.py", line 283, in run
self.result = application(self.environ, self.start_response)

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/contrib/staticfiles/handlers.py", line 68, in call
return self.application(environ, start_response)

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 273, in call
response = self.get_response(request)

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/handlers/base.py", line 169, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, _callback_args, *_callback_kwargs)

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, _args, *_kwargs)

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/social_auth/views.py", line 66, in associate
return auth_process(request, backend, complete_url)

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/social_auth/views.py", line 93, in auth_process
redirect = reverse(complete_url_name, args=(backend,))

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/urlresolvers.py", line 391, in reverse
_args, *_kwargs)))

File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/urlresolvers.py", line 337, in reverse
"arguments '%s' not found." % (lookup_view_s, args, kwargs))

NoReverseMatch: Reverse for 'associate_complete' with arguments '(u'twitter',)' and keyword arguments '{}' not found.

Where i mistake?
My Urls.py regarding social_auth is:
url(r'^accounts/', include('social_auth.urls', namespace='social')),

Thanks for the support omab.

from django-social-auth.

omab avatar omab commented on September 27, 2024

Remove the namespace please, I've ditched it several changesets ago because they weren't really useful and were confusing instead.

from django-social-auth.

m-misseri avatar m-misseri commented on September 27, 2024

Thanks brother! It seems to work well ;-)

from django-social-auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.