39161-vm/core/views.py
2026-03-13 00:25:29 +00:00

10 lines
278 B
Python

from django.shortcuts import render
from .models import Product
def home(request):
"""Render the landing screen with products."""
products = Product.objects.all()
context = {
"products": products,
}
return render(request, "core/index.html", context)