{% if user.is_authenticated or "login" in request.path %} {% block content %} {% endblock %} {% if user.is_authenticated %}

log out

{% endif %} {% else %}

You are not logged in

log In {% endif %}