1
Fork 0
yamdl-playground/yamdl_content/core/views.py
Jake Howard 861dedecf1
Check content is actually accessible
Gunicorn's `--preload` only creates a single DB, which is good
2023-12-07 00:01:51 +00:00

6 lines
157 B
Python

from .models import Page
from django.http import HttpResponse
import os
def test(request):
return HttpResponse(f"{Page.objects.count()} {os.getpid()}")