<reponame>katrinaalaimo/pyshop<filename>products/views.py
from django.http import HttpResponse
from django.shortcuts import render
from .models import Product


def index(request):
    products = Product.objects.all()
    return render(request, 'products.html', {'products': products})
