I am looking over this website but just can\'t seem to figure out how to do this as it\'s not working. I need to check if the current site user is logged in (authenticated),
In your view:
{% if user.is_authenticated %} {{ user }} {% endif %}
{{ user }}
In you controller functions add decorator:
from django.contrib.auth.decorators import login_required @login_required def privateFunction(request):