per page, with , order by , clip by
Results of 1 - 2 of about 2 for NewsItem (0.003 sec.)
配信 (syndication) フィード フレームワーク — Django 6.1 ドキュメント 11228
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 配信 (syndication) フィード フレームワーク ¶ Django には、 RSS と Atom フィードを作成するための高レベルな配信 (syndication) フィード生成フレームワー ... しています: from django.contrib.syndication.views import Feed from django.urls import reverse from policebeat.models import NewsItem class LatestEntriesFeed ( Feed ): title = "Police beat site news" link = "/sitenews/" description = "Updates on changes an ... d additions to police beat central." def items ( self ): return NewsItem . objects . order_by ( "-pub_date" )[: 5 ] def item_title ( self , item ): return item . title def item_description ( self ... , item ): return item . description # item_link is only needed if NewsItem has no get_absolute_url method. def item_link ( self , item ): return reverse ( "news-item" , args = [ item . pk ]) このフ ...
https://man.mtool.work/django/6.1/ref/contrib/syndication.html
配信 (syndication) フィード フレームワーク — Django 6.1 ドキュメント 7485
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 配信 (syndication) フィード フレームワーク ¶ Django には、 RSS と Atom フィードを作成するための高レベルな配信 (syndication) フィード生成フレームワー ... しています: from django.contrib.syndication.views import Feed from django.urls import reverse from policebeat.models import NewsItem class LatestEntriesFeed ( Feed ): title = "Police beat site news" link = "/sitenews/" description = "Updates on changes an ... d additions to police beat central." def items ( self ): return NewsItem . objects . order_by ( "-pub_date" )[: 5 ] def item_title ( self , item ): return item . title def item_description ( self ... , item ): return item . description # item_link is only needed if NewsItem has no get_absolute_url method. def item_link ( self , item ): return reverse ( "news-item" , args = [ item . pk ]) このフ ...
https://man.mtool.work/django/6.1/ref/contrib/syndication.html
PREV 1 NEXT