title: python flask render_template and another return value
body: <p>I use Python flask for my web application. the application provide a CSV file to download. CSV file is the response in below code block. Also I need to send a variable to html template. How can I have two return value?</p>
  <pre><code>@application.route(&quot;/log_analysis&quot;, methods=['POST'])
  def get_response():
      output='The result of your query :  '+str(i-1)+' . The full report is downloaded automatically.'
      cw.writerows(csv_rows)
      response = make_response(si.getvalue())
      response.headers[&quot;Content-Disposition&quot;] = f&quot;attachment; filename={return_file_name}&quot;
      response.headers[&quot;Content-type&quot;] = &quot;text/csv&quot;
      
      return render_template('base.html',output=output)
      return response, 200
  </code></pre>
  <p>The output will be shown in the html but the response in the second return doesn't work.</p>