내가 장고에서 다음과 같이 쓰고있다 :Django에서 CSV에 쓰는 동안 쉼표를 포함하지 마십시오?
writer.writerow(['VideoName ', 'Director ', 'Cameraman ', 'Editor ', 'Reporter ', 'Tag '])
그것은이 같은 CSV 쓰고있다 :
이response = HttpResponse(content_type='text/csv')
response['Content-Disposition'] = 'attachment; filename="report.csv"'
Video, Director, Cameraman
는하지만 난 단지 원하는 : 내가 장고에이 일을하고
Video Director Cameraman
을 .
응답 : 응답 [ 'Content-Disposition'] = '첨부 파일; 구분 기호 = ""; filename = "report.csv" ' 그러나 쉼표가 표시됩니다. – pynovice
아니,'csv.writer' 생성자에서 구분 기호를 설정해야합니다. – alecxe
예, 감사합니다. – pynovice