pyexcel export error "No content, file name. Nothing is given"
<p>I'm using <code>django-pyexcel</code> to export data from the website, but when I go to the export URL I get the error:</p>

<blockquote>
  <p>Exception Type: IOError</p>
  
  <p>Exception Value: No content, file name. Nothing is given</p>
</blockquote>

<p>The code to export the data was copied from the <a href="http://django-excel.readthedocs.io/en/latest/#handle-data-export" rel="nofollow">example</a> given in the documentation:</p>

<pre><code>return excel.make_response_from_a_table(Question, 'xls', file_name="sheet")
</code></pre>

<p>The problem turned out to be the file format used, <code>xls</code> in this case.</p>

<p>I had only installed the <code>xlsx</code> (<code>pyexcel-xlsx</code>) processor so it did not know how to handle the <code>xls</code> file format.</p>

<p>The exception message could have been a bit better as I spent ages trying to figure out if there was a problem with the filename I'd supplied.</p>

python django pyexcel django-excel