from django.shortcuts import render
from django.views.generic import ListView, CreateView
from .models import Post
from django.urls import reverse_lazy # new

# Create your views here.
class HomePageView(ListView):
    model = Post
    template_name = 'index.html'

def portfolio(request):
    return render(request, 'portfolio.html')
8ca67b5dc2ba959d256e4ff48d4b5d0f0ddd3918
<mask token>


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


<mask token>

<mask token>


class HomePageView(ListView):
    model = Post
    template_name = 'index.html'


<mask token>

<mask token>


class HomePageView(ListView):
    model = Post
    template_name = 'index.html'


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

from django.shortcuts import render
from django.views.generic import ListView, CreateView
from .models import Post
from django.urls import reverse_lazy


class HomePageView(ListView):
    model = Post
    template_name = 'index.html'


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

from django.shortcuts import render
from django.views.generic import ListView, CreateView
from .models import Post
from django.urls import reverse_lazy # new

# Create your views here.
class HomePageView(ListView):
    model = Post
    template_name = 'index.html'

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