django-openstax-healthcheck is a Django middleware to intercept /ping and /ping/ requests from AWS. This is required when using OpenStax IaC for deployment.
Quick start
Add the following settings to your settings file::
# Add to middleware, be sure it's before CommonMiddleware
MIDDLEWARE = [
# ... (optional before)
'healthcheck.middleware.HealthCheckMiddleware',
# ... (optional between)
'django.middleware.common.CommonMiddleware',
# ... (optional after CommonMiddleware)
]
Usage
Add something like this to your logging configuration:
import logging
logging.config.dictConfig({
# ...
'filters': {
'healthcheck_filter': {
'()': 'healthcheck.filter.HealthCheckFilter'
},
},
# ...
})
Release files for django-openstax-healthcheck 1.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 | |
|---|---|---|---|
| django-openstax-healthcheck-1.0.tar.gz | 14.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_openstax_healthcheck-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.8 kB
Release files / django-openstax-healthcheck-1.0.tar.gz
| Download URL | django-openstax-healthcheck-1.0.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
888a08805cc13f5c351228e94d94e087902fec3bfe7c3f6d75cd24d4d856dc68
|
|
BLAKE2b-256 checksum How to use checksums |
16659e2c31399313601e09a4d74798ae188af6f14a73aa5842a1a3a77e95557f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Release files / django_openstax_healthcheck-1.0-py3-none-any.whl
| Download URL | django_openstax_healthcheck-1.0-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a94f3f64f597e78019aa32ef48b271e0e3344e2668227cf7916d8f283a4bdee6
|
|
BLAKE2b-256 checksum How to use checksums |
50cbdb9510db3bc0d7bfbba29d766761a9f4f8f64470a24705dc0505c802fdd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|