2👍
✅
Grab all the products int he view then loop over them in the template.
// View
products = Upload_files.objects.all()
// Template
{% for product in products %}
<img src="/media/{{ product.image }}/" />
{% endfor %}
Source:stackexchange.com