response = HttpResponse(fsock, mimetype='audio/mpeg')
response['Content-Disposition'] = 'attachment; filename=%s - %s.mp3' % (song
    .artist, song.title)
return response
Django: Serving a Download in a Generic View