[Answer]-Python social auth 404 error

1👍

It is a very good chance that your problem is in the urls.py code which you doesn’t show. I suspect that some of the urls catches the ^/login/([^/]+)/ pattern but doesn’t handle the /login/facebook/ path.

Try to move the social urls to the top of your urls.py. Set it as the first item of the patterns():

urlpatterns = patterns('',
    url('', include('social.apps.django_app.urls', namespace='social')),
    ...
)

Leave a comment