This is my model.
class Product(models.Model)
id = models.AutoField(max_length=10, primary_key=True)
name = models.CharField(max_length=60)
summary = models.TextField(max_length=200)
image = models.FileField(upload_to='product_images', blank=True)
I know how to import data from csv in django model. But I also have image field here.
Can I upload files to models from the method of adding data to models from csv? How?
I am using this method for importing them: http://mitchfournier.com/2011/10/11/how-to-import-a-csv-or-tsv-file-into-a-django-model/
I have images stored in a folder in my system.