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 https://stackoverflow.com/questions/60806049/import-csv-file-with-django
Have you got an idea what is happening?
There is a dedicated Python module for CSV handling: https://docs.python.org/3/library/csv.html
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.