I am pretty new to Django and trying to use django-social-auth in my Django project.
I followed the README that is very clear.
my settings.py
#...
AUTHENTICATION_BACKENDS = (
# 'social_auth.backends.twitter.TwitterBackend',
'django.contrib.auth.backends.ModelBackend',
)
TWITTER_CONSUMER_KEY = 'xxxxxxxxx'
TWITTER_CONSUMER_SECRET = 'xxxxxxxxxxxxxxxxxxxx'
SOCIAL_AUTH_DEFAULT_USERNAME = 'user'
SOCIAL_AUTH_ASSOCIATE_BY_MAIL = True
INSTALLED_APPS = (
#...
'social_auth',
)
#...
If I activate the twitter backend and try to login the standard way, I get:
'module' object has no attribute 'HTTPSConnection'
3 questions:
- Do I have to install SSL with Python ?
- How can I check if it's installed ?
- What is the best way to install it ?