Django Pandas to http response (download file)

前端 未结 6 933
醉话见心
醉话见心 2020-12-29 06:36

Python: 2.7.11

Django: 1.9

Pandas: 0.17.1

How should I go about creating a potentially large xlsx file download? I\'m creating a xlsx file with panda

6条回答
  •  孤城傲影
    2020-12-29 07:07

    You're mixing two requirements that should be separate:

    1. Creating a .xlsx file using python or pandas--it looks like you're good on this part.

    2. Serving a downloadable file (django); see this post or maybe this one

提交回复
热议问题