mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Added simple health check
This commit is contained in:
9
src/pretix/base/views/health.py
Normal file
9
src/pretix/base/views/health.py
Normal 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()
|
||||
Reference in New Issue
Block a user