from django.urls import path, include
from django.views.generic import ListView, DetailView
from news.models import Articles
from . import views
urlpatterns = [
path ( '', ListView.as_view( queryset=Articles.objects.all().order_by( '-date' )[:20] ), views.post_news, name='post_news' )
]