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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8aa11bb3a7e44f9e44c5f4a45e92342025da4c5fa104b91dfac5ac75f3757f1 |
|
MD5 | 026128f1255739cf1a601290698eb72e |
|
BLAKE2b-256 | c603a1c69438a042aa8b937f1303dcf9c65fa4b950e198c77638ef6a6b97a60e |
Close
Hashes for leukeleu_django_checks-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f05d96f2bb381661991aab4ba7b7ec2b43a7da5c2cd9c96b5a26b6a90bc92aa4 |
|
MD5 | 435b0e09c4ef5c55341f38d2e72128b6 |
|
BLAKE2b-256 | b87c019eb0d7ec33412e3aab5155d08b7ef403e3a27de8511deab3a50cc67a1c |