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_PERMISSIONS
is set to0o644
leukeleu.W002
: Check ifEMAIL_BACKEND
is 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_BACKEND
is 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_CHECK
is set toFalse
- This check only runs if wagtail is installed
leukeleu.W005
: Check ifsentry-sdk
is installedleukeleu.W006
: Check ifsentry-sdk
is configured correctlyleukeleu.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
Built Distribution
Close
Hashes for leukeleu-django-checks-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | afc271609290fddde331ecfd95b0e0ad6d61429d5fbd9fb74a3ce35baa895717 |
|
MD5 | 1d66e8da26462fd8bffb3aacfad187df |
|
BLAKE2b-256 | 9fa9dfca00eeb8d926067b27443c6d318294b269a981cb9bd67aed98dd4992fd |
Close
Hashes for leukeleu_django_checks-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40e26e9aac366f88dbecf8de42d085172e9f30c24295d8bc1657162081d8cd2d |
|
MD5 | 8c38ce3a8dc58b66109438de2ca1456f |
|
BLAKE2b-256 | e1383c170c455c0500963c81fa08b6a87ac1227a7c307c6162ad8dcc5188cf50 |