Skip to main content

Django Authentication Logger

build license kit format

This is a modest Django app that contains how thelab likes to log authentication for staff users. It may be useful to others, but could easily just be copied.

Install

First, install the package from PyPI.

pip install django-auth-logger

Then, add auth_logger to your Django project’s INSTALLED_APPS setting.

INSTALLED_APPS = [
    ...
    'auth_logger',
    ...
]

Usage

By default both successful and failed log-ins are logged to standard Python logging (at INFO level).

In the future we may decide to add more configuration options.

Contribution

The scope of this project is small and specific - but we welcome adding configuration settings to change behavior and meet more use cases. All configuration options should have a test to verify it works.

If we do add said configuration it will probably look something like this:

AUTH_LOGGER = {
    'LOG_ONLY_STAFF': True
}

Changelog

2.2.0

  • Support django-ipware v4

2.1.0

  • Add Django 3.2 to test suite

2.0.0

  • Update to django-ipware v3

1.1.1

  • Update test suite for with Django 2.2 and Python 3.8

1.1.0

  • Log all login attempts, instead of just logins for staff users.

  • Fix bug which prevented failed login attempts from being correctly logged.

1.0.1

  • Add support for Django 2.0.

1.0.0

  • Initial release.

Metadata

Release files for django-auth-logger 2.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-auth-logger 2.4.0
File Size Uploaded Provenance Actions
django_auth_logger-2.4.0.tar.gz 42.7 kB With provenance Details for django_auth_logger-2.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-auth-logger 2.4.0
File Interpreter ABI Platform Actions
django_auth_logger-2.4.0-py3-none-any.whl Python 3 none any Details for django_auth_logger-2.4.0-py3-none-any.whl

Total release size: 47.8 kB

Release files / django_auth_logger-2.4.0.tar.gz

Download URL django_auth_logger-2.4.0.tar.gz
Size 42.7 kB
Tags Source
SHA-256 checksum
How to use checksums
131a4b2bb6b6e2da68a6069cfe5c9d6807ad86be1756085f8209b188b7c7da28
BLAKE2b-256 checksum
How to use checksums
53868a8459b10427ba50c122d07a3e263cce7195934b96cea8b7d4f5d9319e9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.14.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitLab CI/CD, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / django_auth_logger-2.4.0-py3-none-any.whl

Download URL django_auth_logger-2.4.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01d1393e1e82ccf9bd17b0e0d4ff1f327bfa962a2e42ab0088d31b14de61b5d2
BLAKE2b-256 checksum
How to use checksums
2aa0588e8b52bef34638f468c0f1876afaa0bdc709f2664524c6b1025590e376
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.14.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitLab CI/CD, verified by PyPI on Oct 30, 2026.

Transparency log

Security for django-auth-logger 2.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_auth_logger-2.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitLab CI/CD, verified by PyPI on Oct 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page