Tech Insights
Avoid using user.is_anonymous in templates. If for some reason the user is not set it will evaluate to False and this could expose sensitive content. Use not is_authenticated instead.
Shared by
- Django



