123456789101112 |
- from django.conf import settings
- from django.http import HttpResponse
- from django.shortcuts import render
- async def health(request):
- return HttpResponse("ok", content_type="text/plain")
- def index(request, *args):
- base_path = settings.FORCE_SCRIPT_NAME if settings.FORCE_SCRIPT_NAME else "/"
- return render(request, "index.html", {"base_path": base_path})
|