The title says it all. Allow your visitors to sign in via Twitter, Facebook, FriendFeed, OpenID, and OAuth with django-socialregistration. Hence the name, “social registration”. I’ve been tinkering with this module and I’ve just got the Twitter OAuth login/registration to work. It’s pretty neat!
You know how much you loathe having to register/sign-up for yet another new service, just to try it? Well, as a site owner, it’s really in your best interest to lower the bar for the public to figure out if they want to use your service. Make it as frictionless as possible.
The README provides all the instructions you need, except one thing: you must explicitly tell Django’s authentication process to also check the socialregistration module’s authentication backend
In other words, in your settings.py:
AUTHENTICATION_BACKENDS = (
# this is the default backend, don't forget to include it!
'django.contrib.auth.backends.ModelBackend',
# this is what you're adding for using Twitter
'socialregistration.auth.TwitterAuth',
'socialregistration.auth.FacebookAuth', # Facebook
'socialregistration.auth.OpenIDAuth', # OpenID
)
You can either add it in your settings.py or global_settings.py (mine’s in /usr/local/lib/python2.6/dist-packages/django/conf/ )
(more…)
