def index(request): the_user = request.user
In Django, how do I know if it\'s a real user or not? I tried:
if the_user:
I had a similar issue except this was on a page that the login_redirect_url was sent to. I had to put in the template:
{% if user.is_authenticated %} Welcome Back, {{ username }} {% endif %}