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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec5736c057120a6541c20bf279c88f72cb6aa595290d95b284a8ae265b72cf1d |
|
MD5 | 1c6d6e47e3a86c09c0a9ce0dc48bb105 |
|
BLAKE2b-256 | 15a4a9c88624d48b34af4c2f5b2120d4025b11e55a674533779ab7a55ffee6dd |