Open the file in universal-newline mode using the CSV Django module

I finally found the solution:

mypath = customerbulk.objects.get(pk=1).fileup.path
o = open(mypath,'rU')
mydata = csv.reader(o)

Leave a Comment