I work on a python(django) project. I write csv code as follows,
response = HttpResponse(mimetype=\'text/csv\') response[\'Content-Disposition\'] = \'att
CSV only contains data, it doesn't contain any formatting information. If you need to format your data, I'd suggest actually creating an XLS file instead of a CSV file. Try using something like xlwt.