Simple Django health check
Project description
django-simple-health-check
Simple Django health check
Inspired by:
Installation
$ pip install django-simple-health-check
Quick start
-
Install the package
-
Add
simple_health_check
to your INSTALLED_APPS settings like this:
INSTALLED_APPS = [
...,
'simple_health_check',
]
- Add
simple_health_check.urls
to mainurls.py
:
from django.urls import path, include
urlpatterns = [
...,
path('', include('simple_health_check.urls')),
]
- Configure the readiness checks:
SIMPLE_HEALTH_CHECKS = {
'simple_health_check.checks.migrations.Migrations': [
dict(alias='db1'),
dict(alias='db2'),
],
'simple_health_check.checks.db.Databases': None,
}
by default
SIMPLE_HEALTH_CHECKS = {
'simple_health_check.checks.migrations.Migrations': None, # check all aliases
'simple_health_check.checks.db.Databases': None, # check all aliases
}
License
MIT
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
Built Distribution
Close
Hashes for django-simple-health-check-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8b72d9d7ed780d086657a1c4b34ee5746b8137d2fbca58e8d5410ca603a132c |
|
MD5 | 28a1600ae6670658ab6a4726151276db |
|
BLAKE2b-256 | 4b410ab68484977c69563ed54370cebb0c0c617128bb86151459da378fc5cfd9 |
Close
Hashes for django_simple_health_check-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dd562dcfa4a59b27fd8b1f3eb4395730b4702c90346c66e5a640e16fb64aab1 |
|
MD5 | 7179688c0eb106453b3625f481b5e9e5 |
|
BLAKE2b-256 | 47a02853c2fdbb2b8ffc1f728f144d267d67f038e03cd57e1e9c42216dd9d67c |