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.5.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for django_monitus-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 234cefc66de28b85834e0ccd61179372465cd6095116d26c9f3546d07d3fd91f |
|
MD5 | a9e8b751d7e2cb7a70bd5789a04e79c3 |
|
BLAKE2b-256 | a511a0e549b0b2a375752aa569277d0b73e1814d3460e606e499308264cbe39d |