Additional deploy checks and other tools to validate if a Django project is set up correctly.
Add 'leukeleu_django_checks' to INSTALLED_APPS.
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).
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.
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.