Source

panda_online_users /

Filename Size Date modified Message
48 B
415 B
0 B
335 B
0 B
383 B
26 B

Installation 1. Add application to your Django project 2. Define AUTH_PROFILE_MODULE in your project settings 3. Your profile module should contain 'last_activity = models.DateTimeField(auto_now=True, auto_now_add=True)' 4. You can get online status by calling something like: def isOnline(self): return (self.last_activity > datetime.datetime.now() - datetime.timedelta(minutes=5)) 5. ... 6. Profit!