per page, with , order by , clip by
Results of 1 - 1 of about 1 for beat (0.001 sec.)
配信 (syndication) フィード フレームワーク 9414
配信 (syndication) フィード フレームワーク Django には、 RSS と Atom フィードを作成するための高レベルな配信 (syndication) フィード生成フレームワークが付属しています。 任意の配信フィードを作成するには、短い Python クラスを書くだけで済みます。 ... ースのフィードを記述しています: 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 and additions to police beat central." def items ( self ): return NewsItem . objects . order_by ( "-pub_date" )[: 5 ] def item_title ( self , item ): r ... 、フィードのURL内の情報に基づいてアイテムを出力できます。 警察の管轄地域のフィードは次のようなURLを介してアクセスできます: /beats/613/rss/ -- 613番担当地域の最近の犯罪情報を返します。 "/beats/1424/rss/" -- 1424番担当地域の最近の犯罪を返します。 これら ...
https://man.mtool.work/django/6.1/ref/contrib/syndication.html
PREV 1 NEXT