How to update product details in database by excel sheet?

10 views
Skip to first unread message

Ashutosh Mishra

unread,
Nov 17, 2020, 11:35:33 PM11/17/20
to Django REST framework
It's urgent
I have a task,

How to Update a product Price in our database from excel sheet
for eg i have a product name ABC on my website, i want to update that price from an excel sheet


models.py

class Product(models.Model):
product_name=models.CharField(max_length=255,blank=True,null=True)
product_price=models.CharField(max_length=255,blank=True,null=True)

def __str__(self):
return str(self.product_name)
Reply all
Reply to author
Forward
0 new messages