Hi Musksan, You need to implement some functionality to upload the CSV file and read it then upload data into into database in bulk. You can django has a way to add multiple objects using bulk_create. Here is a full example I hope it will help.
https://github.com/pmutua/drf_csv_xlsx_file_upload On Wed, 25 Nov 2020, 22:52 Muskan Vaswan, <muskanvas...@gmail.com> wrote: > Hi everyone, > I am Muskan and am very new to this community however not that new to > django itself. Contributing to django is something I would really like to > do, and I might also be participating in GSoc for the same. > > I have an vague idea of what I want to fix, because I myself have used > django and just want to add things as a developer that I would've wanted as > a user. So my question is understanding based around this idea of mine. > > *I want to know what functionality already exists that makes it easier to > directly load a large data set into a django model from a CSV file (going > with the simplest format or now).* When I had to do it as a user it took > me quite a while and was a lot more complicated than I had expected, after > being used to smooth transitions with load data. I could not find any > better methods to do it, if there indeed exists no other methods, this is > something I would like to work on.... So this is just to confirm if my > research was thorough enough (very possibly wasn't). > > Thank you! I'm excited to begin helping out! > > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/a3946181-cd91-4b83-b9d6-d8d8f786b6acn%40googlegroups.com > <https://groups.google.com/d/msgid/django-developers/a3946181-cd91-4b83-b9d6-d8d8f786b6acn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAH5sparqCDyBVRB1Dhbd299DqXc%2BUzpNAKy%2BH0z_%3DsLTfwVE2A%40mail.gmail.com.