title: Download files from Amazon S3 with Django
body: <p>I have a Django app that allows users to download MP3 files that they purchased and these MP3 files are hosted in Amazon S3. How can I force a download when users click a "download" button without allowing them to see the original link (to Amazon)? 
  I have a view that downloads the file but the file is corrupt.
  Here is how it looks like:</p>
  
  <pre><code>def download(request):
      filename = 'https://s3-eu-west-1.amazonaws.com/skempi/Ihsahn/04-emancipation-qtxmp3.mp3'
      response = HttpResponse(mimetype='application/force-download')
      response['Content-Disposition']='attachment;filename="%s"'%filename
      response["X-Sendfile"] = filename
      return response
  </code></pre>