Re: How to get data from django model to excel sheet using openpyxl including images.

2020-07-09 Thread Ashutosh Mishra
here is my model Do correct me ,where i am doing the mistake class Task(models.Model): Id=models.IntegerField() Name=models.CharField(max_length=50,null=False,blank=True) Image1=models.FileField(blank=True, default="", upload_to="media/images",null=True) Image2=models.FileField(blank=True, default

Re: How to get data from django model to excel sheet using openpyxl including images.

2020-07-09 Thread Ashutosh Mishra
Yes ,I have tried,I am getting the excel sheet,everything is correct except not getting the image,getting only the root media folder adress On Fri, Jul 10, 2020, 11:07 AM Jakob Damgaard Møller wrote: > What have you tried so fare? > Are you able to get the data out of the api as wanted? > Are yo

Re: How to get data from django model to excel sheet using openpyxl including images.

2020-07-09 Thread Jakob Damgaard Møller
What have you tried so fare? Are you able to get the data out of the api as wanted? Are you able to produce a excel file? On Fri, Jul 10, 2020 at 5:02 AM Ashutosh Mishra wrote: > I am creating an api to get data and images from django model to excel > sheet ,how can i do that,someone please help

How to get data from django model to excel sheet using openpyxl including images.

2020-07-09 Thread Ashutosh Mishra
I am creating an api to get data and images from django model to excel sheet ,how can i do that,someone please help me. -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, s