Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
docutils で作成したすべてのドキュメントを何らかの形式 (html、pdf など) にダウンロードしたいのですが、簡単に行う方法はありますか?
はい
以下に例を示します: response = HttpResponse(content_type="application/ms-excel") response['Content-Disposition'] = 'attachment; filename=excel.xls' これは、ダウンロードできるように、excel.xls という名前の添付ファイルを Excel 形式で提供します。
response = HttpResponse(content_type="application/ms-excel")
response['Content-Disposition'] = 'attachment; filename=excel.xls'