Skip to main content

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

  1. Add “last_active” to your INSTALLED_APPS setting like this

INSTALLED_APPS = [
    ...
    'last_active',
]
  1. Add ‘last_active.middleware.LastActiveMiddleware’ to MIDDLEWARE_CLASSES tuple found in your settings file.

  2. 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

django-last-active-4S-0.9.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file django-last-active-4S-0.9.tar.gz.

File metadata

  • Download URL: django-last-active-4S-0.9.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for django-last-active-4S-0.9.tar.gz
Algorithm Hash digest
SHA256 6ee2ed4de611f495dda827bda54a1b8e5fedbb05c8c3148fd66ef0172c06de0f
MD5 dc82e31c4e2c2b0cc5473f6c5bec201c
BLAKE2b-256 f9cd1ffe4503773ca5b967dde2be72b75c393dd5cb80264fce87475e71f05f53

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page