nschlemm / django-health-check-email

Add email check to django-health-check.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-health-check-email

This is a plugin for django-health-check, which check that your app can send emails through the email backend configured in your Django settings.

Installation

Install with pip in your environment:

pip install django-health-check django-health-check-email

Add the app to your INSTALLED_APPS:

INSTALLED_APPS = [
    # ...
    'health_check',                             # required
    # ...
    'health_check_email',
]

Apply migrations:

python manage.py migrate

Configuration

Add your settings to HEALTH_CHECK:

HEALTH_CHECK = {
    "EMAIL_ENABLED": True,
    "EMAIL_IS_CRITICAL": True,
    "EMAIL_SUBJECT": "my email health check",
    "EMAIL_MESSAGE": "my message",
    "EMAIL_FROM": "test@example.com",
    "EMAIL_TO": ["admin@example.com", "dev@example.com"],
}

About

Add email check to django-health-check.

License:MIT License


Languages

Language:Python 100.0%