Thursday, March 29, 2018

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

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 

from django.db import models
class RegisterMember(models.Model):
    GENDER_CHOICES = (
        ('M', 'Male'),
        ('F', 'Female'),
    ) 
    id = models.AutoField(db_column='ID', primary_key=True) 
    name = models.CharField(db_column='NAME', max_length=255) 
    email = models.CharField(db_column='EMAIL', max_length=255) 
    phone = models.CharField(db_column='PHONE', max_length=5000, blank=True, null=True)
    address = models.CharField(db_column='ADDRESS',max_length=255) 
    gender = models.CharField(max_length=1, choices=GENDER_CHOICES)

--
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+unsubscribe@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/3660cbbd-8207-4969-9a91-a25f732e4360%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment