Django Watchman

1.5.0 · active · verified Thu Apr 16

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.

Common errors

Warnings

Install

Imports

Quickstart

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.

import os

# settings.py
INSTALLED_APPS = [
    # ... other apps
    'watchman',
]

# urls.py
from django.urls import re_path, include

urlpatterns = [
    # ... other url patterns
    re_path(r'^watchman/', include('watchman.urls')),
    # For a minimal status endpoint (optional)
    # from watchman.views import bare_status
    # re_path(r'^watchman/bare/$', bare_status),
]

# Optional: Protect with a token (add to settings.py)
# WATCHMAN_TOKEN = os.environ.get('WATCHMAN_TOKEN', 'your_secret_token')

# Run checks from command line (optional)
# python manage.py watchman -v 2

view raw JSON →