from django.shortcuts import render, HttpResponse
from .models import BlogPost


def blog_view(request):
    queryset=BlogPost.objects.all()
    return render(request, 'posts.html', context={'posts': queryset})