I have a django app which allows users to submit an image with it. Right now my model looks like
class Posting(models.Model): title = models.CharField(m
Do something like this. This code is working in my app.
views.py:
def list(request): images = Image.objects.all() return render(request, "list.html", {'images': images})
list.html:
{% for i in images %} {% endfor %}