Tiny error reporting middleware(s) for Django.
Project description
Tiny error reporting middleware(s) for Django. Includes the following middlewares:
Error403EmailsMiddleware: sends an email to ADMINS on 403.
FailedLoginMiddleware: sends an email to ADMINS on failed logins.
Requirements
Tested on Python 3.8.
Tested on Django 3.0 and 3.1.
Setup
Install from pip:
python -m pip install django-monitus
Then add it to the list of installed apps:
INSTALLED_APPS = [
...
"monitus"
...
]
Enable the desired middleware:
MIDDLEWARE = [
...
"monitus.middleware.Error403EmailsMiddleware"
...
]
Setup ADMINS in your settings:
MANAGERS = [("Juliana C.", "juliana.crain@dev.io")]
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
django-monitus-0.0.4.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file django-monitus-0.0.4.tar.gz
.
File metadata
- Download URL: django-monitus-0.0.4.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a13df7f1d4e5a193f3c2f8775d3d5ece8759bd87b46cf504da251f0040f533c0 |
|
MD5 | 5e0c7f62a8c16f6b27b4096f99ef3f0d |
|
BLAKE2b-256 | 30792a391687d6e0806c524674ab4814ac0112c05769bc45dcbd86f0504d2e44 |
File details
Details for the file django_monitus-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: django_monitus-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 991e992172fe3c993435d540c66ca1f277cfa3197159c51530be079b57f66575 |
|
MD5 | c6ad0d9bb0d46e49a56716d03677ce87 |
|
BLAKE2b-256 | f4963713bd1db805e3fe0e47f1ea50be8d7be413d9ee20097b0271721bbc826c |