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 ifFILE_UPLOAD_PERMISSIONSis set to0o644leukeleu.W002: Check ifEMAIL_BACKENDis set tobandit.backends.smtp.HijackSMTPBackend- Disable this for test/staging environments using
SILENCED_SYSTEM_CHECKS
- Disable this for test/staging environments using
leukeleu.W003: Check ifEMAIL_BACKENDis not set tobandit.backends.smtp.HijackSMTPBackend- Disable this for production environments using
SILENCED_SYSTEM_CHECKS
- Disable this for production environments using
leukeleu.W004: Check ifWAGTAIL_ENABLE_UPDATE_CHECKis set toFalse- This check only runs if wagtail is installed
leukeleu.W005: Check ifsentry-sdkis installedleukeleu.W006: Check ifsentry-sdkis configured correctlyleukeleu.W007: Make sure there is no/adminor/admin/urlleukeleu.I008: Check ifleukeleu-django-gdpris inINSTALLED_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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d13b94158eae90c3cc6c52462d230e6e5f3cb667d06063030087abf2eb90d9a
|
|
| MD5 |
4b51dff9dc02af918bf423fcc7ed37d8
|
|
| BLAKE2b-256 |
61f5005ae057971da1f5c7f925b4caa0c8cdd5b031a366b7a005207b359f8f59
|
Provenance
The following attestation bundles were made for leukeleu_django_checks-1.3.0.tar.gz:
Publisher:
release.yml on leukeleu/leukeleu-django-checks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
leukeleu_django_checks-1.3.0.tar.gz -
Subject digest:
2d13b94158eae90c3cc6c52462d230e6e5f3cb667d06063030087abf2eb90d9a - Sigstore transparency entry: 692401290
- Sigstore integration time:
-
Permalink:
leukeleu/leukeleu-django-checks@0e8b514a8f92c0e4eb643ed53e33500be50b9ad0 -
Branch / Tag:
refs/tags/v1.3.0 - Owner: https://github.com/leukeleu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0e8b514a8f92c0e4eb643ed53e33500be50b9ad0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file leukeleu_django_checks-1.3.0-py3-none-any.whl.
File metadata
- Download URL: leukeleu_django_checks-1.3.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acc17369252658537b75460f9cde241e147ef6f912fabe3996013747d34506c1
|
|
| MD5 |
ff072ec8b391dc095f2b2b2293755220
|
|
| BLAKE2b-256 |
6b35f2becd3a328dc91209a57e71980e6f2fea7b0746ba2d875ccc106ca101b8
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
leukeleu_django_checks-1.3.0-py3-none-any.whl -
Subject digest:
acc17369252658537b75460f9cde241e147ef6f912fabe3996013747d34506c1 - Sigstore transparency entry: 692401296
- Sigstore integration time:
-
Permalink:
leukeleu/leukeleu-django-checks@0e8b514a8f92c0e4eb643ed53e33500be50b9ad0 -
Branch / Tag:
refs/tags/v1.3.0 - Owner: https://github.com/leukeleu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0e8b514a8f92c0e4eb643ed53e33500be50b9ad0 -
Trigger Event:
release
-
Statement type: