Skip to main content

Reusable device tracking app for Django projects

Project description

A reusable Django app for tracking user login devices securely. Plug it into any Django project and monitor user sessions, IPs, and browser info.

Features

  • Tracks IP address and browser info (User-Agent)
  • Stores refresh token JTI
  • View and manage user devices via admin
  • Designed to be plug-and-play

Installation

pip install django-device-tracker

Usage

  1. Add to INSTALLED_APPS:
INSTALLED_APPS += ["device_tracker"]
  1. Run migrations:
python manage.py migrate device_tracker
  1. Use in your views:
from device_tracker.utils import track_device

track_device(request, user, refresh_token)

License

MIT

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_device_tracker-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_device_tracker-0.1.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file django_device_tracker-0.1.0.tar.gz.

File metadata

  • Download URL: django_device_tracker-0.1.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for django_device_tracker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6bcc575194ba9b1fded2e696fae94528cd0b01ef0c3bc7d1b5be63f264d3b662
MD5 8cbaefe5dccae136f200d585fa785c43
BLAKE2b-256 466561f8d72f47ee8585622c5e0c43a36fb157e2577da8a3602ac4ab3777d469

See more details on using hashes here.

File details

Details for the file django_device_tracker-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_device_tracker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 930a8f52df452af13412b246bb3c9118a4f1a12eff134755e969199f473509a8
MD5 7e2b8b7f88cd074038d3de9c97dc52c9
BLAKE2b-256 91897529dcbb37662a3ac4a112655588c23c8962435ca5e12bc704fb8e6f675b

See more details on using hashes here.

Supported by

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