我想显示经过身份验证的用户列表.
在文档:http://docs.djangoproject.com/en/dev/topics/auth/
class models.User is_authenticated() 总是返回True.这是一种判断用户是否已通过身份验证的方法....
您可以在模板方面知道当前用户是否经过身份验证:
{%if user.is_authenticated%} {%endif%}
但我没有找到获取经过身份验证的用户列表的方式.
任何的想法?
authentication django
authentication ×1
django ×1