I have a django app through which I would like to serve an index.html file. This html file isn't in default django template, rather I have the index.html in a react build folder. I don't want to render the template, rather I want to send it. The render method isn't working, and I don't know if there is any django method that can serve the file. What I want to accomplish can be done using res.sendFile()
in expressjs.
def home(request):
return FileResponse(request, 'home/home.html')
The FileResponse method isn't working here.