Re: Model Generation for CSV, XLS Files

2020-11-26 Thread Philip Mutua
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

Re: Loading CSV Data in Model

2021-04-30 Thread Philip Mutua
Hi, You check an Implementation I did using Django Rest framework over here hope that it will help you. I was using pandas to read the csv records to the model. https://github.com/pmutua/drf_csv_xlsx_file_upload/blob/master/patients/views.py On Thu, Apr 29, 2021 at 5:23 PM 'Muhammad Asim Khaskheli