Skip to main content

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

Project description

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.

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

leukeleu_django_checks-1.3.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

leukeleu_django_checks-1.3.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file leukeleu_django_checks-1.3.0.tar.gz.

File metadata

  • Download URL: leukeleu_django_checks-1.3.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for leukeleu_django_checks-1.3.0.tar.gz
Algorithm Hash digest
SHA256 2d13b94158eae90c3cc6c52462d230e6e5f3cb667d06063030087abf2eb90d9a
MD5 4b51dff9dc02af918bf423fcc7ed37d8
BLAKE2b-256 61f5005ae057971da1f5c7f925b4caa0c8cdd5b031a366b7a005207b359f8f59

See more details on using hashes here.

Provenance

The following attestation bundles were made for leukeleu_django_checks-1.3.0.tar.gz:

Publisher: release.yml on leukeleu/leukeleu-django-checks

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file leukeleu_django_checks-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for leukeleu_django_checks-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 acc17369252658537b75460f9cde241e147ef6f912fabe3996013747d34506c1
MD5 ff072ec8b391dc095f2b2b2293755220
BLAKE2b-256 6b35f2becd3a328dc91209a57e71980e6f2fea7b0746ba2d875ccc106ca101b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for leukeleu_django_checks-1.3.0-py3-none-any.whl:

Publisher: release.yml on leukeleu/leukeleu-django-checks

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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