def index(request): here = os.path.dirname(__file__) index = os.path.join(here, 'index.html') return FileResponse(index, request=request)