Daily Archives: Aug 10, 2012

Handling CSV Uploads in Django

I spent a bit of time today trying to parse a CSV file uploaded to a Django view. On the surface, this doesn’t seem too bad. After all, Django has facilities for file upload, and Python handles CSV files quite well. Unfortunately, when I tested everything out with my first test file, I got a fairly nasty error.