[Answer]-Writing to csv file via django is adding the module name in the first cell of the file header

1👍

It looks like you’re including the module in the response:

response = HttpResponse(csv, content_type='text/csv')

Just try

response = HttpResponse(content_type='text/csv')

Leave a comment