最佳答案
我正在寻找这个网站,但似乎无法弄清楚如何做到这一点,因为它不工作。我需要检查当前站点用户是否已登录(已验证),并且正在尝试:
request.user.is_authenticated
尽管确定用户已经登录,但它只返回:
>
我能够做其他的请求(从url上面的第一部分),比如:
request.user.is_active
返回一个成功的响应。