You actually can't, unless you're using JavaScript for something like websockets or other polling. You can only track their last activity using their session.
Specifically, if a user loads one of your pages, you know it. But then you won't know whether they're still reading it hours later or they closed their browser immediately unless you use JavaScript in some form. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOzwKwFvnJaKjesPASaeyTk5cGG3_hXiNWCVNshRAu6MLz7JSA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.