Skip to content

Commit 9bf3d03

Browse files
committed
feat: add healthcheck
1 parent 45e068b commit 9bf3d03

File tree

4 files changed

+26
-1
lines changed

4 files changed

+26
-1
lines changed

controller/settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050
"django_better_admin_arrayfield",
5151
"django_json_widget",
5252
"durationwidget",
53+
"health_check",
54+
"health_check.db", # stock Django health checkers
55+
"health_check.cache",
56+
"health_check.storage",
5357
"controller.sentry",
5458
]
5559

controller/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def get(self, request, **kwargs): # pylint: disable=unused-argument
3939
path("oidc/", include("mozilla_django_oidc.urls")),
4040
path("admin/login/", CustomLogin.as_view()),
4141
path("admin/", admin.site.urls),
42+
path("health/", include("health_check.urls")),
4243
path("sentry/", include((router.urls, "sentry"), namespace="sentry")),
4344
re_path(r"^media/(?P<path>.*)$", serve, {"document_root": settings.MEDIA_ROOT}),
4445
re_path(r"^static/(?P<path>.*)$", serve, {"document_root": settings.STATIC_ROOT}),

poetry.lock

Lines changed: 20 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ pytest = "^7.2.1"
2424
pytest-django = "^4.5.2"
2525
pytest-xdist = "^3.1.0"
2626
undecorated = "^0.3.0"
27+
django-health-check = "^3.17.0"
2728

2829

2930
[tool.poetry.group.dev.dependencies]

0 commit comments

Comments
 (0)