在django擅长 [英] excel in django
问题描述
我如何让用户从django app.i下载excel。有一个模型给了报告。现在我想要一个用户可以从excel form.ANy解决方案下载文件的选项。
How can i make user to downlaoad a excel from the django app.i HAVE A MODEL WHICH gives the report.Now i want a option from user can download the file in excel form.ANy Solution
推荐答案
您可以将数据输出为.csv,方便导入到MS Excel中。
http://docs.djangoproject.com/en/dev/howto/outputting-csv/
You can output the data as .csv which is easily imported into MS Excel.
http://docs.djangoproject.com/en/dev/howto/outputting-csv/
编辑
写完后,如果实际上有一些方法直接用excel格式发现,我很好奇:
http://www.python-excel.org/ < br>
这让我想知道为什么你没有google你的问题,然后张贴在这里.....
EDIT
After I wrote that I got curious if there actually was some way to do it directly to excel format and found:
http://www.python-excel.org/
That made me wonder why you didn't google your question before posted it here.....
这篇关于在django擅长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!