title: Download file and redirect in a response
body: <p>I want to make a response that both redirect to certain url and donwload a file. To download a file I use:</p>
  
  <pre><code>    content = "Example content"
      filename = "example-file-name".
      response = HttpResponse(content=content,
                                      content_type='text/plain')
      response['Content-Disposition'] = 'attachment; filename={0}'.format(filename)
      return response
  </code></pre>
  
  <p>To redirect to url:</p>
  
  <pre><code> response = HttpResponseRedirect(redirect_to=example_url)
  </code></pre>
  
  <p>Is there a way to make both things in a single response?</p>