Django authentication
Posted
by webvulture
on Stack Overflow
See other posts from Stack Overflow
or by webvulture
Published on 2010-05-16T04:48:10Z
Indexed on
2010/05/16
4:50 UTC
Read the original article
Hit count: 416
django
|django-templates
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?
© Stack Overflow or respective owner