如何调试django-excel零输出+无错误?
How to debug django-excel zero output + no error?
我需要从 Django 应用程序到 xls 的简单数据导出。我设置了 django-excel 并且文件是 generated/downloaded 但是有 0 kB/没有内容。
没有错误消息,我尝试导出的模型有大量对象。我的代码如下所示:
def export_data(request, atype):
if atype == "sheet":
return excel.make_response_from_a_table(City, 'xls', file_name="cities")
结果我安装了 django-parler,但 django-excel 不兼容,或者说我没有尝试制作然后一起使用。
我需要从 Django 应用程序到 xls 的简单数据导出。我设置了 django-excel 并且文件是 generated/downloaded 但是有 0 kB/没有内容。
没有错误消息,我尝试导出的模型有大量对象。我的代码如下所示:
def export_data(request, atype):
if atype == "sheet":
return excel.make_response_from_a_table(City, 'xls', file_name="cities")
结果我安装了 django-parler,但 django-excel 不兼容,或者说我没有尝试制作然后一起使用。