django-monitus
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")]
Development and testing
To test on your local machine with Postgres, make sure to have a role with enough privileges:
CREATE ROLE monitustestuser WITH LOGIN PASSWORD 'monitustestpassword' CREATEDB;
Then run
DATABASE_URL=postgres://monitustestuser:monitustestpassword@localhost/monitustestdb tox
Metadata
Release files for django-monitus 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-monitus-1.0.0.tar.gz | 6.1 kB | Without provenance | Details for django-monitus-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_monitus-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for django_monitus-1.0.0-py3-none-any.whl |
Total release size: 13.8 kB
Release files / django-monitus-1.0.0.tar.gz
| Download URL | django-monitus-1.0.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd2c0da9a806f2493293de99b47602ef175b84354518d47df26f0678f7b9960c
|
|
BLAKE2b-256 checksum How to use checksums |
fe81b8027d8c5dd16a60eba11f2fc2437a230ab5afa32e1610bc38615b9b73d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.0
|
Release files / django_monitus-1.0.0-py3-none-any.whl
| Download URL | django_monitus-1.0.0-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f9015f126aa7e5734926b69d7f2a6cedeb3fd4bb8b570f6f8c8c3ed72d193f4
|
|
BLAKE2b-256 checksum How to use checksums |
6b08a651e4a7afa16cc4232182a6d37d5490fea9c22e599c1976e8fabf57067d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.0
|
Security for django-monitus 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.