django-excel-responseA subclass of HttpResponse | |
Download |
django-excel-response Ranking & Summary
Advertisement
- License:
- Other/Proprietary Li...
- Publisher Name:
- Tarken
- Publisher web site:
- http://bitbucket.org/kmike/
django-excel-response Tags
django-excel-response Description
A subclass of HttpResponse django-excel-response is a subclass of HttpResponse which will transform a QuerySet, or sequence of sequences, into either an Excel spreadsheet or CSV file formatted for Excel, depending on the amount of data.All of this is done in-memory and on-the-fly, with no disk writes, thanks to the StringIO library.Installationpip install excel_response xlwtUsagefrom excel_response import ExcelResponsedef excelview(request): objs = SomeModel.objects.all() return ExcelResponse(objs)or:from excel_response import ExcelResponsedef excelview(request): data = , ] return ExcelResponse(data, 'my_data') Requirements: · Python · Django
django-excel-response Related Software