Skip to main content

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


Download files

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

Source Distribution

django_access_logging-1.0.1.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_access_logging-1.0.1-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file django_access_logging-1.0.1.tar.gz.

File metadata

  • Download URL: django_access_logging-1.0.1.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

Hashes for django_access_logging-1.0.1.tar.gz
Algorithm Hash digest
SHA256 54b46f94b56a8977e4556b19531d0727bec667b6b19c5393495f96c6f155f755
MD5 1c4d1f23acc8877a76d5155f26541942
BLAKE2b-256 01a30b574d6354449a645b60c83254feb2ac60e5ee6e2903bfb617596f5eb2ea

See more details on using hashes here.

File details

Details for the file django_access_logging-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_access_logging-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5edbd5868f5b959c96533c2f5fe3cd1fffed58d57d1cae867f69d31f012e811
MD5 dff99632a8973721b8d92bc3738efb53
BLAKE2b-256 226933f1df1ccccb28a0fb1b62edd3c4810af81524240d45e0ba94718fdacb92

See more details on using hashes here.

Supported by

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