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

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.

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.1.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

leukeleu_django_checks-1.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file leukeleu-django-checks-1.1.0.tar.gz.

File metadata

File hashes

Hashes for leukeleu-django-checks-1.1.0.tar.gz
Algorithm Hash digest
SHA256 afc271609290fddde331ecfd95b0e0ad6d61429d5fbd9fb74a3ce35baa895717
MD5 1d66e8da26462fd8bffb3aacfad187df
BLAKE2b-256 9fa9dfca00eeb8d926067b27443c6d318294b269a981cb9bd67aed98dd4992fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for leukeleu_django_checks-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40e26e9aac366f88dbecf8de42d085172e9f30c24295d8bc1657162081d8cd2d
MD5 8c38ce3a8dc58b66109438de2ca1456f
BLAKE2b-256 e1383c170c455c0500963c81fa08b6a87ac1227a7c307c6162ad8dcc5188cf50

See more details on using hashes here.

Supported by

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