is_anonymous
Read-only attribute which is always False
. This is a way of differentiating User
and AnonymousUser
objects. Generally, you should prefer using is_authenticated
to this attribute.
Changed in Django 1.10:
In older versions, this was a method. Backwards-compatibility support for using it as a method will be removed in Django 2.0.
Please login to continue.