from django.shortcuts import render, redirect
from product.models import Product,Category

from django.contrib import messages


# Create your views here.

def index(request):

        product = Product.objects.order_by('-upload_date')[:4]



        context = {
            'product': product,



        }

        return render(request, 'pages/index.html', context)

def about(request):
    return render(request, 'pages/about.html')

c17c56bae3c9138e50006c09d05f173d881bdd9c
<mask token>

<mask token>


def about(request):
    return render(request, 'pages/about.html')

<mask token>


def index(request):
    product = Product.objects.order_by('-upload_date')[:4]
    context = {'product': product}
    return render(request, 'pages/index.html', context)


def about(request):
    return render(request, 'pages/about.html')

from django.shortcuts import render, redirect
from product.models import Product, Category
from django.contrib import messages


def index(request):
    product = Product.objects.order_by('-upload_date')[:4]
    context = {'product': product}
    return render(request, 'pages/index.html', context)


def about(request):
    return render(request, 'pages/about.html')

from django.shortcuts import render, redirect
from product.models import Product,Category

from django.contrib import messages


# Create your views here.

def index(request):

        product = Product.objects.order_by('-upload_date')[:4]



        context = {
            'product': product,



        }

        return render(request, 'pages/index.html', context)

def about(request):
    return render(request, 'pages/about.html')
