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')
Source:stackexchange.com
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')