django-watchman exposes a status endpoint for your backing services like databases, caches, and other services. It is currently at version 1.5.0 and maintains an active release cadence with regular updates and security fixes.
pip install django-watchmanVerified import paths — ran on the pinned version, not inferred.
To quickly integrate `django-watchman`, add 'watchman' to your `INSTALLED_APPS` and include `watchman.urls` in your project's `urls.py`. This will provide a JSON status endpoint at `/watchman/` and an HTML dashboard at `/watchman/dashboard/`. For a simpler liveness probe, the `/watchman/ping/` endpoint is also available.
Upgrade your Python environment to 3.10+ and Django to 2.0+ (preferably 4.2+), and remove `django-jsonview` from your dependencies if upgrading from pre-1.0.0 versions.
Ensure your `urls.py` uses `re_path(r'^watchman/', include('watchman.urls'))` for compatibility with Django 3.1+.If you encounter `TypeError: 'str' object is not iterable` or `ImportError` related to `WATCHMAN_CHECKS`, change your setting from `WATCHMAN_CHECKS = 'single.check'` to `WATCHMAN_CHECKS = ('single.check',)` or `WATCHMAN_CHECKS = ['single.check']`.Upgrade to `django-watchman` 1.5.0 or newer, which addresses this by using `SELECT 1 FROM DUAL` for Oracle.
Upgrade to `django-watchman` 1.4.0 or newer to mitigate the ReDoS vulnerability.