from django.shortcuts import render
from django.views.generic import TemplateView, ListView, DetailView
from .models import Snack

# Create your views here.
class HomeView(ListView):
    template_name = 'home.html'
    model = Snack
    
class PostDetailsView(DetailView):
    template_name = 'snack_details.html'
    model = Snack
c66ab109dc1821b744b8b7e67e0efa84fce23feb
<mask token>


class PostDetailsView(DetailView):
    template_name = 'snack_details.html'
    model = Snack

<mask token>


class HomeView(ListView):
    <mask token>
    <mask token>


class PostDetailsView(DetailView):
    template_name = 'snack_details.html'
    model = Snack

<mask token>


class HomeView(ListView):
    template_name = 'home.html'
    model = Snack


class PostDetailsView(DetailView):
    template_name = 'snack_details.html'
    model = Snack

from django.shortcuts import render
from django.views.generic import TemplateView, ListView, DetailView
from .models import Snack


class HomeView(ListView):
    template_name = 'home.html'
    model = Snack


class PostDetailsView(DetailView):
    template_name = 'snack_details.html'
    model = Snack

from django.shortcuts import render
from django.views.generic import TemplateView, ListView, DetailView
from .models import Snack

# Create your views here.
class HomeView(ListView):
    template_name = 'home.html'
    model = Snack
    
class PostDetailsView(DetailView):
    template_name = 'snack_details.html'
    model = Snack