[Answer]-Using Django and Python to read in file in views.py and exporting the tab dilimited file to a HTML table?

1👍

My first recommendation is to use with to open files:

with open('filename.ext', 'mode') as f:

Using with automagically closes your file for you so you don’t have to explicitly do so 🙂

Second, please visit: http://docs.python.org/3.3/library/csv.html#examples for a great explanation from the source.

The first example demos how to read your CSV file!

Leave a comment