How to wrap a div for not registered users?

You need to wrap the div so that it was only available to users who have not logged in
{% if user.is_authenticated %} is authorized for, and how to do the opposite?
June 5th 19 at 21:34
2 answers
June 5th 19 at 21:36
Solution
is_anonymous
June 5th 19 at 21:38
{% if user.is_authenticated %}
 the <div>For authenticated</div>
{% else %}
 the <div>For all other</div>
{% endif %}

Find more questions by tags DjangoPython