Django authentication
- by webvulture
In my base.html file, I am using
{% if user.is_authenticated %}
<a href="#">{{user.username}}</a>
{% else %} <a href="/acc/login/">log in</a>
Here, even if the user is logged in, the log in button shows up.
Now when I click on the log in link, it shows the username and also the normal login view, saying user is logged in.
So, what's wrong?