A Django app to track when a user is last active and eventually provide weekly active user stats
Project description
last_active is a Django app to track when a user is last active on a website. The last active time is kept on the database.
It was forked from django-last-seen.
The intention is to eventually add weekly active user tracking feature as well.
Installation
Add “last_active” to your INSTALLED_APPS setting like this
INSTALLED_APPS = [ ... 'last_active', ]
Add ‘last_active.middleware.LastActiveMiddleware’ to MIDDLEWARE_CLASSES tuple found in your settings file.
Run python manage.py migrate to create the last_active models.
Settings
LAST_SEEN_DEFAULT_MODULE
The default module used on the middleware. The default value is default.
LAST_SEEN_INTERVAL
How often is the last seen timestamp updated to the database. The default is 2 hours.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-last-active-4S-0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d39ae3fa65dfc9ea29403719933171ecd81cf9e40df8c8f6ecad203070e9a903 |
|
MD5 | 84cbeff721a3b082cdfb76b9652e7383 |
|
BLAKE2b-256 | 1d06f300773df3f4bdcbd6bb3d5776eedf48cb516a3abda7c8bce3f743ef1b79 |