Answer the question
In order to leave comments, you need to log in
How to display image in Django 1.9 admin?
Good afternoon !
There is a model:
class ShopItem(models.Model):
title = models.CharField(max_length=100)
class ShopItemImg(models.Model):
ShopItem_id = models.ForeignKey(ShopItem)
img = models.ImageField(upload_to='shop/', 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