from django.shortcuts import render

#classbased view
from django.views.generic import ListView,DetailView

#models
from App_Shop.models import Category,Product

#Mixins
from django.contrib.auth.mixins import LoginRequiredMixin
# Create your views here.

class Home(ListView):
    model = Product
    template_name = 'App_Shop/home.html'
    

class ProductDetail(DetailView,LoginRequiredMixin):
    model = Product
    template_name = 'App_Shop/product_detail.html'
     