1👍
✅
Just use <img src="{{ image.image.url }}" class="image-preview">
Where image
is an instance of your Image
model, the second image
is the Image
‘s model field and url
is an attribute of the ImageField
object. More on it here, list item #3.
Source:stackexchange.com