Added simple health check

This commit is contained in:
Raphael Michel
2016-05-31 00:11:26 +02:00
parent 1d934fcca9
commit d8b7765a9b
2 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
from django.http import HttpResponse
from ..models import User
def healthcheck(request):
# Perform a simple DB query to see that DB access works
User.objects.exists()
return HttpResponse()