Django package designed to capture and store HTTP requests essential information, including IP address, user model, user agent, HTTP method, timestamp, and more.
Project description
django-request-logger
Overview
'django-request-logger' is a Django package designed to capture and store HTTP requests essential information, including IP address, user model, user agent, HTTP method, timestamp, and more.
Installation
Install the package using pip:
pip install django-request-track
Usage
-
Add request_track to your INSTALLED_APPS in your Django project's settings:
INSTALLED_APPS = [ # ... 'request_track', # ... ]
-
Register the middleware in your MIDDLEWARE settings:
MIDDLEWARE = [ # ... 'request_track.middleware.LoggingRequestMiddleware' ]
-
Migrate:
python manage.py migrate
After it all work will be done automatically and you can see the information through the Django admin panel or work with the "RequestLog" model.
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
File details
Details for the file django-request-track-0.2.2.tar.gz
.
File metadata
- Download URL: django-request-track-0.2.2.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4ddc914e783f9a7d2be2d1b903c7e84c5af38d7fbed74422e6deaa71953aa8f |
|
MD5 | 8b8ac4768526ab92121ca7847463935f |
|
BLAKE2b-256 | a92296aed7a6a34d96e8aaab8bd7aa48a8613e63846a6205f314202fe9466cb1 |