您是否考虑
p.body过
response像这样发送:
response = HttpResponse(mimetype='text/plain')response['Content-Disposition'] = 'attachment; filename="%s.txt"' % p.uuidresponse.write(p.body)

您是否考虑
p.body过
response像这样发送:
response = HttpResponse(mimetype='text/plain')response['Content-Disposition'] = 'attachment; filename="%s.txt"' % p.uuidresponse.write(p.body)