Import CSV file with django


I am trying to import a csv file in my database. For some reason, I don`t manage to loop the csv file and only the 1st line of the file is being displayed.

I`ve put every details on here

Have you got an idea what is happening?


There is a dedicated Python module for CSV handling:
Use that and do not try to parse the file yourself.


Thank you, I`ll change my code. By any chance, if you know any tutorial please let me know.


Iā€™d say that the code samples in the official Python docs are already a good start.