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/
urlleukeleu.I008
: Check ifleukeleu-django-gdpr
is 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.
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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 510c8e3615fce4a16ab7f3caf9caf3f96a9652d08df6517266068831436cb8ac |
|
MD5 | 8ea6b52ab08459a7c200fa5b71f000bc |
|
BLAKE2b-256 | fd87ca6f8cc9d0e2fc975074a6b77e1c7fec12b009fa55af65e927c34de70806 |
Close
Hashes for leukeleu_django_checks-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2315aa5de73e5a6850d5e79ddbf3478dc22789011b8c403af523da246c0d480e |
|
MD5 | 752beeec89241d3efa91408d8fab2359 |
|
BLAKE2b-256 | 010f702a1836d7de41a6b9ea741738677725d1f205a0cf8654e16a2ce420db35 |