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.

Supports Software

  • Python: 3.8, 3.9

  • Django: 3.2

Support Policy

For Python, we will always support the latest two minor versions starting with 3.8 and 3.9.

When a new Python minor version is generally available, we will have two releases:

  1. a -final release for the current major version that includes the latest Python minor

  2. a brand new major version that will drop the oldest supported Python version

For Django, at any point in time, there will be a minimum of two or three versions with active support by Django Foundation.

Therefore, this plugin will similarly follow the same road map but with a 2 month delay.

  1. when a new Django major version is generally available, the plugin will release a new major version that supports it within 2 months.

  2. when a new Django minor version is generally available, the plugin will release a new minor version that supports it within 2 months.

  3. when a Django minor version ends its extended support, the plugin will deprecate any versions that support that version 2 months later.

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-0.1.1.tar.gz (7.2 kB view details)

Uploaded Source

File details

Details for the file django-last-active-0.1.1.tar.gz.

File metadata

  • Download URL: django-last-active-0.1.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for django-last-active-0.1.1.tar.gz
Algorithm Hash digest
SHA256 58666d94cdb77065039263e3161471eac12d25e1cb09c772a6872aa38e060905
MD5 8691a6088dac54f1a706c7a1188df13f
BLAKE2b-256 1aff96a2d0f86f9ae19deef86aff7ed57b0a3c4f6ae88a46797cc250a70dd900

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