{"author_name":"CortYuming","categories":["Python","Django"],"height":"190","author_url":"https://blog.hatena.ne.jp/CortYuming/","version":"1.0","description":"(django1.11, python3.7.x) open() \u4f7f\u308f\u305a\u306b HttpResponse \u3067\u3084\u308b\u5834\u5408\u306e\u3084\u3064 import csv import io from django.http import HttpResponse def some_view(request): # Create the HttpResponse object with the appropriate CSV header. response = HttpResponse(content_type='text/csv') response['Content-Disposition'] = 'attachme\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcortyuming.hateblo.jp%2Fentry%2F2020%2F06%2F23%2F133720\" title=\"Django \u3067 csv \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9 \u3092 utf8 \u306e BOM \u4ed8\u304d\u306b\u3059\u308b\u30e1\u30e2 - \u724c\u8a9e\u5099\u5fd8\u9332 -pygo\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","blog_url":"https://cortyuming.hateblo.jp/","blog_title":"\u724c\u8a9e\u5099\u5fd8\u9332 -pygo","image_url":null,"provider_url":"https://hatena.blog","type":"rich","published":"2020-06-23 13:37:20","provider_name":"Hatena Blog","title":"Django \u3067 csv \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9 \u3092 utf8 \u306e BOM \u4ed8\u304d\u306b\u3059\u308b\u30e1\u30e2","url":"https://cortyuming.hateblo.jp/entry/2020/06/23/133720"}