title: user.is_authenticated in Users List
body: <p>Despite many searches, I have not found any solution to my problem : Content for authenticated user does not display on the view displaying users list.</p>
  
  <p>My app has a view displaying a list of users:</p>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>def UserListView(request):
      user = User.objects.all().order_by('-date_joined')
      return render(request, 'accounts/user_list.html', {"user": user})
  </code></pre>
  
  <p>A base template with this navbar:</p>
  
  <p><strong>base.html</strong></p>
  
  <pre><code>&lt;nav class="navbar"&gt;
    &lt;ul&gt;
      {% if user.is_authenticated %}
        &lt;li&gt;&lt;a class="nav-item" href={% url 'logout' %}&gt;Logout&lt;/a&gt;&lt;/li&gt;
      {% else %}
        &lt;li&gt;&lt;a class="nav-item" href={% url 'login' %}&gt;Login&lt;/a&gt;&lt;/li&gt;
      {% endif %}
    &lt;/ul&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p>Even if the user is logged, The menu displays Login instead of Logout.
  I am suspecting a problem of context?
  Any advice is welcome :)</p>