My django web app makes and save docx and I need to make it downloadable.
I use simple render_to_response
as below.
return render_to_response("test.docx", mimetype='application/vnd.ms-word')
However, it raises error like 'utf8' codec can't decode byte 0xeb in position 15: invalid continuation byte
I couldn't serve this file as static so I need to find a way to serve it as this.
Really appreciate for any help.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…