@login_required
def view(request, id):
    image = get_object_or_404(Image, pk=id)
    return render(request, 'images/view.html', {
        'title': image.caption,
        'image': image,
    })
View uploaded image.
dataset/ETHPy150Open 2buntu/2buntu-blog/twobuntu/images/views.py/view