Tools to support adding a Django-based service to Ministry of Justice's Incidence Response and Tuning
Project description
A set of tools to make it easier to add a Django-based service to Ministry of Justice’s Incidence Response and Tuning:
ping.json view
healthcheck.json view with extensible healthchecks
Usage
Install using pip install django-moj-irat.
Django settings:
HEALTHCHECKS = [
'moj_irat.healthchecks.database_healthcheck',
# override default list of healthcheck callables
]
AUTODISCOVER_HEALTHCHECKS = True # whether to autodiscover and load healthcheck.py from all installed apps
Development
Please report bugs and open pull requests on GitHub.
Use python setup.py test to run all tests.
Distribute a new version by updating the version argument in setup.py:setup and creating a release in GitHub (this triggers a GitHub Actions workflow to automatically upload it).
Copyright
Copyright (C) 2020 HM Government (Ministry of Justice Digital Services). See LICENSE.txt for further details.
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
Hashes for django_moj_irat-0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43b971b8b286b7b7ec919c3f4378eacc1b9571bd426c0575f3d8154111975861 |
|
MD5 | ec1bbdf365cf66bbcce37a5fa313dc17 |
|
BLAKE2b-256 | 6ead8ae545c229d37dde7d81a3101a4ce73fdd67699ab3741b9652c5ed554841 |