Django: get last user visit date

前端 未结 7 2203
隐瞒了意图╮
隐瞒了意图╮ 2020-12-13 04:28

In Django, we can get the time user last logged in by using Auth.User.last_login. That is only updated when the user logs in using his username/password. Supp

相关标签:
7条回答
  • 2020-12-13 05:21

    I would go for django-last-seen

    Usage:

    from last_seen.model import LastSeen
    
    seen = LastSeen.object.when(user=user)
    
    0 讨论(0)
提交回复
热议问题