13번째 줄:
13번째 줄:
response["Content-Disposition"] = 'attachment; filename=' + '파일명' + '.xls'
response["Content-Disposition"] = 'attachment; filename=' + '파일명' + '.xls'
+
# 알아서 데이터 입력.
wb = xlwt.Workbook(encoding='utf-8') # 인코딩
wb = xlwt.Workbook(encoding='utf-8') # 인코딩
ws = wb.add_sheet('시트이름')
ws = wb.add_sheet('시트이름')