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
- Add to
INSTALLED_APPS:
INSTALLED_APPS += ["device_tracker"]
- Run migrations:
python manage.py migrate device_tracker
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bcc575194ba9b1fded2e696fae94528cd0b01ef0c3bc7d1b5be63f264d3b662
|
|
| MD5 |
8cbaefe5dccae136f200d585fa785c43
|
|
| BLAKE2b-256 |
466561f8d72f47ee8585622c5e0c43a36fb157e2577da8a3602ac4ab3777d469
|
File details
Details for the file django_device_tracker-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_device_tracker-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
930a8f52df452af13412b246bb3c9118a4f1a12eff134755e969199f473509a8
|
|
| MD5 |
7e2b8b7f88cd074038d3de9c97dc52c9
|
|
| BLAKE2b-256 |
91897529dcbb37662a3ac4a112655588c23c8962435ca5e12bc704fb8e6f675b
|