title: django allAuth 'request' error when using provider_login_url in e.g. main.html
body: <p>Afraid this is a newbie question.</p>
  
  <p>I'm trying to have social login links on my main page, using this code in my template:</p>
  
  <pre><code>{% load i18n %}
  {% load static %}
  {% load socialaccount %}
  {% load account %}
  {% load url from future %}
  {% get_static_prefix as STATIC_PREFIX %}
  ...
  &lt;a href="{% provider_login_url 'facebook' method='js_sdk' %}"&gt;&lt;img src='{{ STATIC_PREFIX }}img/facebookText.png' alt="facebook connect"&gt;&lt;/a&gt;
  &lt;a href="{% provider_login_url 'google' method='js_sdk' %}"&gt;&lt;img src='{{ STATIC_PREFIX }}img/googleText.png' alt="google connect"&gt;&lt;/a&gt;
  &lt;a href="{% url 'account_login' %}"&gt;&lt;img src='{{ STATIC_PREFIX }}img/idText.png' alt="Regular login"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>I have made sure that my site id is correctly specified (as explained [here][1]).</p>
  
  <p>I have specified settings in my settings.py as suggested in this [tutorial][2] and this [guide][3]:</p>
  
  <pre><code>INSTALLED_APPS = (
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.sites',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      # Uncomment the next line to enable the admin:
      # Uncomment the next line to enable admin documentation:
      # 'django.contrib.admindocs',
      'django_tables2_reports',
      'subscription',
      'django_tables2',
      'allauth',
      'allauth.account',
      'allauth.socialaccount',
      'allauth.socialaccount.providers.facebook',
      'allauth.socialaccount.providers.google',
      #'allauth.socialaccount.providers.linkedin',
      #'allauth.socialaccount.providers.openid',
      # 'allauth.socialaccount.providers.twitter',
      'django.contrib.admin',
  
  )
  
  TEMPLATE_CONTEXT_PROCESSORS = (
                                 "django.core.context_processors.request",
                                 'django.contrib.auth.context_processors.auth',
                                 'django.core.context_processors.static',
                                 "django.core.context_processors.debug", 
                                 "django.core.context_processors.i18n", 
                                 "django.core.context_processors.media",
                                  "allauth.account.context_processors.account",
                                  "allauth.socialaccount.context_processors.socialaccount",
  
                                  )
  
  AUTHENTICATION_BACKENDS = (
  
      # Needed to login by username in Django admin, regardless of `allauth`
      "django.contrib.auth.backends.ModelBackend",
  
      # `allauth` specific authentication methods, such as login by e-mail
      "allauth.account.auth_backends.AuthenticationBackend",
  
  )
  </code></pre>
  
  <p>I also specified that after logging in, the user is directed to my homepage:</p>
  
  <pre><code>LOGIN_REDIRECT_URL="/"
  </code></pre>
  
  <p>But I get this error when accessing my home page (the page supplied with the far above template):
  Error during template rendering</p>
  
  <pre><code>In template C:\Users\Andy\Desktop\business\app\static\templates\base.html, error at line 40
  request
  30          &lt;/style&gt;
  31  &lt;/head&gt;
  32  &lt;body class="{% block body_class %}{% endblock %}"&gt;
  33  &lt;div align="right"&gt;
  34  {% if user.is_authenticated %}
  35  {% user_display user as user_display %}
  36  {% blocktrans %}{{ user_display }} logged in{% endblocktrans %}
  37  &lt;a href="{% url 'account_logout' %}"&gt;Sign Out&lt;/a&gt;
  38  {% else %}
  39  &lt;img src='{{ STATIC_PREFIX }}img/loginText.png' alt="login"&gt;
  40  &lt;a href="{% provider_login_url 'facebook' method='js_sdk' %}"&gt;&lt;img src='{{ STATIC_PREFIX }}img/facebookText.png' alt="facebook connect"&gt;&lt;/a&gt;
  41  &lt;a href="{% provider_login_url 'google' method='js_sdk' %}"&gt;&lt;img src='{{ STATIC_PREFIX }}img/googleText.png' alt="google connect"&gt;&lt;/a&gt;
  42  &lt;a href="{% url 'account_login' %}"&gt;&lt;img src='{{ STATIC_PREFIX }}img/idText.png' alt="Regular login"&gt;&lt;/a&gt;
  43  {% endif %}
  44  &lt;/div&gt;
  45  
  46  
  47  
  48  
  49  {% block body %}
  50  {% block content %}{% endblock %}
  </code></pre>
  
  <p>Help would very much be appreciated  :) I suspect that my View needs to deliver additional info to my html, related to this provider_login_url  .</p>