from django.shortcuts import render
from .models import Article, Comment
def index(reguest):
latest_articles_list = Article.objects.order_by('-pub_date')[:5]
return render(reguest, 'articles/list.html', {'latest_articles_list': latest_articles_list})