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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e78e8b3386cb84279a597ddf52d109a258330c445541eaa99d572d822f5d6fc6 |
|
MD5 | 0d81c99bfc37cb0948d0d510fac69c22 |
|
BLAKE2b-256 | 97093487978f28b8aa5e7835bcb45f69733eaeca121317a2827bf02b43884567 |
Close
Hashes for leukeleu_django_checks-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dc7228c55294284f2c543524d9adf4e9eab199f6c913138db1e0dca027f7bb1 |
|
MD5 | 3c45c61ffe602a74c142bf15ee9a5156 |
|
BLAKE2b-256 | 626db45bcb160c180f2cc68506681bd81ce054d045c4950fc013d15ec30e39dc |