Django middleware to log all requests and responses to a database.
Project description
django-access-logging
Django middleware to log all requests and responses to a database.
Installation
Using pip
pip install django-access-logging
In your project's settings.py file, add django_access_loggingto INSTALLED_APPS:
INSTALLED_APPS = [
# ...
"django_access_logging",
]
Then, create the database tables by running migrate:
python manage.py migrate
Usage
Viewing logged data
After installing and restarting the server, logged data can be viewed within Access log entries
section of Django admin interface. See screenshots below:
Ignoring specific IP prefixes
To ignore logging for specific IP addresses, add them to the Ignored Ip Prefixes model in the Django admin interface.
For example, adding 192., will ignore all IP addresses starting with 192..
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
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_access_logging-1.0.0.tar.gz.
File metadata
- Download URL: django_access_logging-1.0.0.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05bce035fc74da0791774ec8b65473acd4e6c4f76f82fa96c9b67196354670f4
|
|
| MD5 |
8bcb7a320a0c1127a1c353ef44776d6f
|
|
| BLAKE2b-256 |
4aa07bff13e63f42f6f326a591c7d0fe02cbc574bff544f1ab1498cc4fee3d0d
|
File details
Details for the file django_access_logging-1.0.0-py3-none-any.whl.
File metadata
- Download URL: django_access_logging-1.0.0-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d1d01f262ee244b0021f8c17a1f7d4a5484cc7e9a93db7f3abb3c96eeba348c
|
|
| MD5 |
ffafa47d487d5c443341ad7acc6027ee
|
|
| BLAKE2b-256 |
19e3ed291fa39a09548b9064d03058ab4a81b204fa9054958b45e3892dd0ae7e
|