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 correctly
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.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a28fc4db6f00241d604c2e94bce407d2f4d104b82707c9f9a7a6feb9a0dc543 |
|
MD5 | cc9c8925ce73984b500b66b3ea4fa733 |
|
BLAKE2b-256 | bc9bfe1a5ec31091769ebb021e11f579d9ef3d47aaff3d1b8995d8dd63c213d5 |
Close
Hashes for leukeleu_django_checks-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42067d7fe558b416bf114b6f8a2e6ff49bf8f8f46847284c11d302dc9b2fe11b |
|
MD5 | 3c6268fa1a771d476b7830639fb8c06b |
|
BLAKE2b-256 | c6fddb446e18a71c3f2fd7c26d810028f10d31813f60fda5a43cc9a04f543b96 |