looking for a good tutorial for creating user with fb,tw,google login

75 views
Skip to first unread message

Bussiere

unread,
Jul 19, 2014, 11:25:07 PM7/19/14
to django...@googlegroups.com
I am looking for a good tutorial on how to log user with fb,tw, google and record them in db.

I've tried python-social-auth and this tutorial but it's a pain and it's not recording user
https://www.artandlogic.com/blog/2014/04/tutorial-adding-facebooktwittergoogle-authentication-to-a-django-application/

i'am near nervous brekdown and it's a pain in the ash.

Regards
Bussiere

Frankline

unread,
Jul 19, 2014, 11:43:17 PM7/19/14
to django...@googlegroups.com


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2769cb04-3bcc-4129-a695-65e7704fa9e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Muhammad M

unread,
Jul 20, 2014, 2:03:35 AM7/20/14
to django...@googlegroups.com

Bussiere,

I have used python-social-auth in one of my projects and it works great.

If you are developing a Python-based web app (irrespective of what framework you are using - Django, Flask, etc.), it's the best OAuth package out there, at least in my opinion.

It's hard to guess what may be the problem since you didn't provide any specific code. But check these sections of the PSA documentation to see if or where you may have missed out on some subtle details:

1: PSA General Configuration

http://psa.matiasaguirre.net/docs/configuration/settings.html

2: PSA Configuration for Django
http://psa.matiasaguirre.net/docs/configuration/django.html

3. Review the tutorial from artandlogic.com you referenced above.

Also, pay careful attention to whether you have properly configured the AUTHENTICATION_BACKENDS setting (as instructed in #1 and #2 above.)

And, in case all these fail, your sharing some code might help more experienced Djangonauts and Pythonistas point out the sneaky culprits.

All the best. :)

Sincerely,
Muhammad

Bussiere

unread,
Jul 20, 2014, 2:53:11 PM7/20/14
to django...@googlegroups.com
there is no twitter in django-allauth.


Do you have any tutorial so how to create a user in database with python-social-auth and django and get info from tw,fb, google ?

I will go back on this project tonight and will post code if i still cannot make progress.

Regards
Bussiere

Luca Corti

unread,
Jul 21, 2014, 10:44:15 AM7/21/14
to django...@googlegroups.com
Il 2014-07-20 20:53 Bussiere ha scritto:
> there is no twitter in django-allauth.

Twitter is there.

https://github.com/pennersr/django-allauth/tree/master/allauth/socialaccount/providers/twitter

ciao

Luca
Reply all
Reply to author
Forward
0 new messages