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/
url
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.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38815e4a7fc469b8c6be1f45387eda40b51608368071f9575faccb4cb43c36cd |
|
MD5 | 0ec82bf5c40bb3a954c31bfc182dde29 |
|
BLAKE2b-256 | c5835502ed217175e7ee5fe7fb150d9e7869bbd22eed935a2214567b864aab85 |
Close
Hashes for leukeleu_django_checks-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61773fd2efc8c75cef9d31a4a007354c8c8e82ce8843d2663df5e0a7f365cde8 |
|
MD5 | 2efff43b8b5bb98141b8614239db81c1 |
|
BLAKE2b-256 | bcc31a516e49ab502974b94347f174464c35980b57e7bed6211c228d0722a6ef |