I am trying to import a CSV file, using a form to upload the file from the client system. After I have the file, I\'ll take parts of it and populate a model in my app. However,
In python 3, I used:
import csv from io import StringIO csvf = StringIO(xls_file.read().decode()) reader = csv.reader(csvf, delimiter=',')
xls_file being the file got from the POST form. I hope it helps.