output = HttpResponse(mimetype=
    'application/application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
    )
file_name = 'Test.xlsx'
output['Content-Disposition'] = 'attachment; filename=' + file_name
wb = Workbook()
ws = wb.worksheets[0]
ws.cell('A1').value = 3.14
wb.save(output)
return output
как вывести xlsx, сгенерированный Openpyxl, в браузер?