Skip to main content
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.

Release files for django-auth-logger 2.3.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.3.0
File Size Uploaded
django_auth_logger-2.3.0.tar.gz 3.9 kB Details

Built distribution (wheel)

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

Total release size: 9.0 kB

Release files / django_auth_logger-2.3.0.tar.gz

Download URL django_auth_logger-2.3.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7fcb3c783ac433b5f0080dc643a10c7b8845105646c9ff87abe9d0a383c5b881
BLAKE2b-256 checksum
How to use checksums
385d99f7f9414d38a502e937b0bc82fb57127d3687841f7df5277e025eb6b296
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.2

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 Apr 3, 2025.

Transparency log

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

Download URL django_auth_logger-2.3.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d982047371ea3066b326037e6f1de7479a6924ed341a99cb85b6662e5ffd672e
BLAKE2b-256 checksum
How to use checksums
98e9a0ff8efafa1951963e85874bc2afb0880d5b25f9bd4d2a1d07b7181c8858
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.2

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 Apr 3, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

2.3.0 This release

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

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