Skip to main content

Leukeleu Django Checks

Additional deploy checks and other tools to validate if a Django project is set up correctly.

Installation

Add 'leukeleu_django_checks' to INSTALLED_APPS.

Included checks

  • leukeleu.W001: Check if FILE_UPLOAD_PERMISSIONS is set to 0o644
  • leukeleu.W002: Check if EMAIL_BACKEND is set to bandit.backends.smtp.HijackSMTPBackend
    • Disable this for test/staging environments using SILENCED_SYSTEM_CHECKS
  • leukeleu.W003: Check if EMAIL_BACKEND is not set to bandit.backends.smtp.HijackSMTPBackend
    • Disable this for production environments using SILENCED_SYSTEM_CHECKS
  • leukeleu.W004: Check if WAGTAIL_ENABLE_UPDATE_CHECK is set to False
    • This check only runs if wagtail is installed
  • leukeleu.W005: Check if sentry-sdk is installed
  • leukeleu.W006: Check if sentry-sdk is configured correctly
  • leukeleu.W007: Make sure there is no /admin or /admin/ url
  • leukeleu.I008: Check if leukeleu-django-gdpr is in INSTALLED_APPS

Run ./manage.py check --deploy to execute these checks (in addition to Django's default set).

List superusers

Run ./manage.py list_superusers to print a list of all (in)active superusers.

The name of each superuser is printed with a "+" (active) or "-" (inactive) prefix.

List staff users

Run ./manage.py list_staff_users to print a list of all (in)active staff users.

The name of each staff user is printed with a "+" (active) or "-" (inactive) prefix.

Release files for leukeleu-django-checks 1.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 leukeleu-django-checks 1.3.0
File Size Uploaded
leukeleu_django_checks-1.3.0.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for leukeleu-django-checks 1.3.0
File Interpreter ABI Platform
leukeleu_django_checks-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.8 kB

Release files / leukeleu_django_checks-1.3.0.tar.gz

Download URL leukeleu_django_checks-1.3.0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2d13b94158eae90c3cc6c52462d230e6e5f3cb667d06063030087abf2eb90d9a
BLAKE2b-256 checksum
How to use checksums
61f5005ae057971da1f5c7f925b4caa0c8cdd5b031a366b7a005207b359f8f59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.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 GitHub Actions, verified by PyPI on Nov 11, 2025.

Transparency log

Release files / leukeleu_django_checks-1.3.0-py3-none-any.whl

Download URL leukeleu_django_checks-1.3.0-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acc17369252658537b75460f9cde241e147ef6f912fabe3996013747d34506c1
BLAKE2b-256 checksum
How to use checksums
6b35f2becd3a328dc91209a57e71980e6f2fea7b0746ba2d875ccc106ca101b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.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 GitHub Actions, verified by PyPI on Nov 11, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.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