Re: How to upload and save excel data in database django

2018-03-29 Thread Jani Tiainen
Hi, there are few ways to do that, both represented in previous posts. Simpler one is to export data as CSV since it's simpler to read in Python (Python has built-in CSV reader/writer) Complex one is to use some library to read Excel files directly. See

Re: How to upload and save excel data in database django

2018-03-29 Thread arvind yadav
how to use in django please explain On Thursday, March 29, 2018 at 5:51:17 PM UTC+5:30, Lei Zhao wrote: > > I think you use the library xlrd to extract data from the Excel file. > The documentation for the library can be found here at > http://xlrd.readthedocs.io/en/latest/ . > > > On Thursday,

Re: How to upload and save excel data in database django

2018-03-29 Thread Lei Zhao
I think you use the library xlrd to extract data from the Excel file. The documentation for the library can be found here at http://xlrd.readthedocs.io/en/latest/ . On Thursday, March 29, 2018 at 6:03:03 PM UTC+8, arvind yadav wrote: > > this is may data format > > >

Re: How to upload and save excel data in database django

2018-03-29 Thread Julio Biason
Hi, I'd export the data to CSV (which is easier to parse), create a Django Command ( https://docs.djangoproject.com/en/2.0/howto/custom-management-commands/#module-django.core.management) that will open the CSV and then add the records. On Thu, Mar 29, 2018 at 7:03 AM, arvind yadav <

How to upload and save excel data in database django

2018-03-29 Thread arvind yadav
this is may data format from django.db import models class RegisterMember(models.Model): GENDER_CHOICES = ( ('M', 'Male'), ('F', 'Female'), )