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.1.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for django_monitus-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46f45f3ffaddebf259bb33d6ae73e88107c15e7733b8066e5319d85924083c61 |
|
MD5 | 8ee2ed2aa978c590af26d8aad81326a9 |
|
BLAKE2b-256 | 38a543eef0191b4dca8f661769e0505e67a999e73a0a4ddee38e2e9d4ca5862e |