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 hashes)

Uploaded Source

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