mirror of
https://github.com/pretix/pretix.git
synced 2026-09-13 16:14:40 +00:00
Added simple health check
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user