How to check for user authentication in Django's class-based view with get_context_data

后端 未结 0 1179
野趣味
野趣味 2021-01-12 22:21

When using function based views in Django, I normally would check for user authentication with:

if not self.request.use         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题