title: Django login_required passes but then user.is_authenticated fails in the template (??)
body: <p>This view function:</p>
  
  <pre><code>@login_required 
  def dashboard(request):
      from myproject.myapp.models import UserProfile
      k = UserProfile.objects.get( user=request.user.pk ).known
  
      return render_to_response('dashboard.html', {'KNOWN': k, , context_instance=RequestContext(request))
  </code></pre>
  
  <p>Passes to this template:</p>
  
  <pre><code>{% if user.is_authenticated %}
      {{ user.username }}
  {% else %}
      Login link
  {% endif %}
      {{ KNOWN }}
  </code></pre>
  
  <ol>
  <li>I have already logged in.    </li>
  <li>Page does not redirect to LOGIN_URL (so therefore @login_required thinks im logged in I guess)   </li>
  <li>{{ KNOWN }} renders perfectly OK   </li>
  <li>{{ user.username }} doesn't appear</li>
  </ol>
  
  <p>How is this possible? Surely if login_required works, and it managed to grab KNOWN, therefore user <em>must</em> exist somewhere?<br>
  How can I debug this? </p>
  
  <p>:-)</p>
  
  <hr>
  
  <p>UPDATE:
  If I remove:   </p>
  
  <pre><code>TEMPLATE_CONTEXT_PROCESSORS = ('django.core.context_processors.request',)
  </code></pre>
  
  <p>From settings, it works.<br>
  However, by removing that, other pages which use {{ request.get_full_path }} in templates don't load.<br>
  Eeek.  </p>
  
  <hr>
  
  <p>UPDATE 2:     </p>
  
  <pre><code>TEMPLATE_CONTEXT_PROCESSORS = (
  "django.contrib.auth.context_processors.auth",
  "django.core.context_processors.debug",
  "django.core.context_processors.i18n",
  "django.core.context_processors.media",
  "django.core.context_processors.static",
  "django.core.context_processors.request",)
  </code></pre>
  
  <p>If you just add the request line on its own, it disables all the others which are defaults. D'Oh!</p>
  
  <hr>
  
  <p>UPDATE 3: Thought that would fix it, unfortunately still not working. </p>
  
  <hr>
  
  <p>UPDATE 4: Spotted typo elsewhere, can confirm that Mark Lavin's answer fixed it :)</p>