def healthz(request):
"""for use with healthchecks. wrapped with `cache_page` to test redis cache."""
# here to make sure DB is working
assert Newsletter.objects.exists(), 'no newsletters exist'
return HttpResponse('OK')
文章目录