1

Is it possible to check the user whether is on-line or off-line in Django project?

There is a requirement of check the users whether is on-line.

In my Django project, I have a after-sale group, in it there are several staff admin users.

I want to list their information, I also want to check whether they are login.

How to check it? I use django-rest-auth, there is a token to verify the users, I am not sure whether this helps.

aircraft
  • 25,146
  • 28
  • 91
  • 166
  • 1
    possible duplicate of -https://stackoverflow.com/questions/41200216/django-detect-if-user-is-online-offline – Shubhitgarg Feb 22 '18 at 06:39
  • https://stackoverflow.com/questions/29663777/how-to-check-whether-a-user-is-online-in-django-template – Vaibhav Feb 22 '18 at 06:39
  • For checking login you can try decorators like login required or some user authenticated , For to find online Using Caching you can do like mentioned [here](http://www.djangocurrent.com/2011/07/django-using-cashing-to-track-online.html) – Vikas Periyadath Feb 22 '18 at 06:43
  • Possible duplicate of [Django - detect if user is online / offline](https://stackoverflow.com/questions/41200216/django-detect-if-user-is-online-offline) – Brown Bear Feb 22 '18 at 08:42

0 Answers0