response.headers['Content-Type'] = 'text/csv' # I've also seen this for CSV files: 'text/csv; charset=iso-8859-1; header=present' response.headers['Content-Disposition'] = 'attachment; filename=thefile.csv'
You need to create an account or log in to post comments to this site.