django excel xlwt

前端 未结 6 652
醉梦人生
醉梦人生 2020-12-02 08:15

On a django site, I want to generate an excel file based on some data in the database.

I\'m thinking of using xlwt, but it only has a method to save the data to a fi

6条回答
  •  时光取名叫无心
    2020-12-02 08:41

    If your data result doesn't need formulas or exact presentation styles, you can always use CSV. any spreadsheet program would directly read it. I've even seen some webapps that generate CSV but name it as .XSL just to be sure that Excel opens it

提交回复
热议问题