Skip to main content

Display settings.py VERSION in django-health-check output

Project description

django-health-check-version

A simple plugin that displays the VERSION value configured in settings.py in the output of python manage.py health_check or the /health/ endpoint of the application.

Installation

Use the package manager pip to install foobar.

pip install django-health-check-version

Add VERSION to settings.py set to whatever value you wish displayed.

VERSION='1.0.0'

Add to INSTALLED_APPS in settings.py

INSTALLED_APPs = [
    ...
    "health_check",  # required
    "health_check.db",  # standard health checkers
    "health_check.cache",
    "health_check.storage",
    "health_check.contrib.migrations",
    "django_health_check_version", # this one
    ...
]

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

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

django-health-check-version-1.0.0.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page