title: django excel xlwt
body: <p>On a django site, I want to generate an excel file based on some data in the database.</p>
  
  <p>I'm thinking of using <a href="http://pypi.python.org/pypi/xlwt" rel="noreferrer">xlwt</a>, but it only has a method to save the data to a file. How can get the file to the HttpResponse object? Or maybe do you know a better library?</p>
  
  <p>I've also found this <a href="http://www.djangosnippets.org/snippets/1151/" rel="noreferrer">snippet</a> but it doesn't do what I need. All I want is a way to get the stream from the xlwt object to the response object (without writing to a temporary file)</p>