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.3.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for django_monitus-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f03747b2e0dcb277259b7720f99a442f6a512a24c6322f94d930eea26545be7 |
|
MD5 | b8966621c5f3ba89cf3becacb79ba0d2 |
|
BLAKE2b-256 | e762fad254f7fb0fb6fef6b427c9562a1a21d9203c51167f883e6a06aabb9cbd |