<gh_stars>0
from django.shortcuts import render
from blogs.models import Blog


def index(request):
    blogs = Blog.objects.order_by('-post_date')[:8]

    context = {
        'blogs': blogs
    }
    return render(request, 'pages/index.html', context)


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

from django.shortcuts import render
from blogs.models import Blog


def index(request):
    blogs = Blog.objects.order_by('-post_date')[:8]

    context = {
        'blogs': blogs
    }
    return render(request, 'pages/index.html', context)


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