Hello everyone, I have the following error and I think I have added everything that I need to make it work.
in the view I have the following:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login</title>
</head>
<body>
{% if not user.is_authenticated %}
<a href="{% url "social:begin" "twitter" %}">Twitter</a>
{% else %}
<h1>Bienvenido {{ user }}</h1>
{% endif %}
</body>
</html>
and in the information regarding the Twitter API I have this:
AUTHENTICATION_BACKENDS = (
'social.backends.twitter.TwitterOAuth',
'social_core.backends.twitter.TwitterOAuth',
'django.contrib.auth.backends.ModelBackend',
)
SOCIAL_AUTH_LOGIN_REDIRECT_URL = '/'
SOCIAL_AUTH_LOGIN_URL = '/login-url/'
SOCIAL_AUTH_URL_NAMESPACE = 'social'
SOCIAL_AUTH_TWITTER_KEY = 'the_key'
SOCIAL_AUTH_TWITTER_SECRET = 'the_secret'