I would like to deploy an image to my page using Django, still in a debig mode. I created a model for the image along some other fields, and all the information is migrated to the database except the image which is storaged in the directory folder for /media/. How can i upload this image to the db and deploy it from there?
class Products(models.Model):
title = models.CharField(max_length=30)
image = models.ImageField(blank=True, null=True)
def __str__(self):
return self.title