from django.http import FileResponse
def send_file():
#some processes
response = FileResponse(open(file_name, 'rb'),as_attachment=True)
return response
The connection sometimes lost. I want to resume downloading the file. How can I do that? Many thanks.