Skip to main content

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

  1. Add request_track to your INSTALLED_APPS in your Django project's settings:

        INSTALLED_APPS = [
        # ...
        'request_track',
        # ...
        ]
    
  2. Register the middleware in your MIDDLEWARE settings:

        MIDDLEWARE = [
            # ...
            'request_track.middleware.LoggingRequestMiddleware'
        ]
    
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-request-track-0.2.2.tar.gz (8.1 kB view details)

Uploaded Source

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

Hashes for django-request-track-0.2.2.tar.gz
Algorithm Hash digest
SHA256 d4ddc914e783f9a7d2be2d1b903c7e84c5af38d7fbed74422e6deaa71953aa8f
MD5 8b8ac4768526ab92121ca7847463935f
BLAKE2b-256 a92296aed7a6a34d96e8aaab8bd7aa48a8613e63846a6205f314202fe9466cb1

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page