response['Content-Disposition'
    ] = 'attachment; filename=%s' % fileModel.FileName
response['Accept-Ranges'] = 'bytes'
response['X-Accel-Redirect'
    ] = settings.MEDIA_URL + '/' + fileModel.FileData.MD5
response['X-Accel-Buffering'] = 'no'
Stream music with byte range requests with Django + nginx