Kasper, You are correct :-), I just assumed (probably incorrectly) that the data was just like his example - in that case it would have been easiest :-)
Regards, Andréas 2018-01-09 9:27 GMT+01:00 Kasper Laudrup <laud...@stacktrace.dk>: > Hi, > > On 2018-01-09 08:09, Andréas Kühne wrote: > >> You will have to parse the CSV file manually with a custom management >> command (at least that is what I would do). All you need to do is open the >> file, split each row with a "," and then import the correct columns to the >> model. >> > > Unfortunately, CSV is a really bad, non-standardized format and simply > splitting each row with a "," will cause you all kinds of issues with > espacing values with a "," and other things. > > I would suggest using the python CSV library for this: > > https://docs.python.org/3/library/csv.html > > Just though that was worth mentioning. > > Kind regards, > > Kasper Laudrup > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ms > gid/django-users/83268fb2-22f6-2d6e-c14c-0015d77c48f0%40stacktrace.dk. > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK4qSCcFzovjvS8M4sgTd8euRcWKWCgqC2xJWcu_qjCvuqdpaw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.