Answer the question
In order to leave comments, you need to log in
How to store 2 images in the database at once?
I am creating a store on Django, I want to upload a lot of photos to the product card, while the code is like this:
models.py
class Item(models.Model):
item_title = models.CharField('Название', max_length=200)
item_description = models.TextField('Описание')
item_size = models.CharField('Размер', max_length=10)
item_price = models.IntegerField('Цена')
item_pub_date = models.DateTimeField('Дата публицкации')
item_image = models.ImageField('Картинка', upload_to="images", null=True, blank=True,)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question