from django.shortcuts import render
from . import models
# Create your views here.

def store(request):
    products = models.Product.objects.all()
    
    context = {
        "products":products
    }
    return render(request,"store.html",context)

def cart(request):
    return render(request,"cart.html")

def checkout(request):
    return render(request,"checkout.html")

def detail(request,id):
    product = models.Product.objects.get(id=id)
    
    context = {
        "product":product,
    }
    return render(request,"detail.html",context)
c16774eaedc1b83be6d4e62bb066c89d2e6b6cb9
<mask token>


def checkout(request):
    return render(request, 'checkout.html')


def detail(request, id):
    product = models.Product.objects.get(id=id)
    context = {'product': product}
    return render(request, 'detail.html', context)

<mask token>


def cart(request):
    return render(request, 'cart.html')


def checkout(request):
    return render(request, 'checkout.html')


def detail(request, id):
    product = models.Product.objects.get(id=id)
    context = {'product': product}
    return render(request, 'detail.html', context)

<mask token>


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


def cart(request):
    return render(request, 'cart.html')


def checkout(request):
    return render(request, 'checkout.html')


def detail(request, id):
    product = models.Product.objects.get(id=id)
    context = {'product': product}
    return render(request, 'detail.html', context)

from django.shortcuts import render
from . import models


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


def cart(request):
    return render(request, 'cart.html')


def checkout(request):
    return render(request, 'checkout.html')


def detail(request, id):
    product = models.Product.objects.get(id=id)
    context = {'product': product}
    return render(request, 'detail.html', context)

from django.shortcuts import render
from . import models
# Create your views here.

def store(request):
    products = models.Product.objects.all()
    
    context = {
        "products":products
    }
    return render(request,"store.html",context)

def cart(request):
    return render(request,"cart.html")

def checkout(request):
    return render(request,"checkout.html")

def detail(request,id):
    product = models.Product.objects.get(id=id)
    
    context = {
        "product":product,
    }
    return render(request,"detail.html",context)