Simple logging of user access to URLs in Django.
Project description
django-view-tracking
Simple logging of user access to URLs in Django.
Usage
Install:
pip install django-view-tracking
Enable:
# settings.py
INSTALLED_APPS = [
...
'django_view_tracking',
...
]
MIDDLEWARE = [
...
'django_view_tracking.middleware.ViewTrackingMiddleware',
...
]
Configure:
# global kill switch
DJANGO_VIEW_TRACKING_ENABLED = True
# switch logging for anonymous users on or off
DJANGO_VIEW_TRACKING_ANONYMOUS_USER = True
# ignore logging for specific paths
DJANGO_VIEW_TRACKING_BLACKLIST = [
reverse('admin:index'),
]
Migrate:
python manage.py migrate
Enjoy:
View logs in the Django Admin under Django View Tracking
.
License
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for django_view_tracking-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 420878e6cf6e5a64366754ee0a10c0463dbea1a33a76dd23e8a1948a33851bc4 |
|
MD5 | 89740880985992b5723f0c1cb8727804 |
|
BLAKE2b-256 | 74906240bdf1f990b71dfd14b505ebe8b622148e6ddbb93c4a90ba63fdc24b65 |