... MIME type for every item in the feed. """ item_enclosure_mime_type = "audio/mpeg" # Hard-coded enclosure MIME type. # ITEM PUBDATE -- It's optional to use one of these three. This is a # hook that specifies how to get the pubdate for a given item. # In ... each case, the method/attribute should return a Python # datetime.datetime object. def item_pubdate ( self , item ): """ Takes an item, as returned by items(), and returns the item's pubdate. """ def item_pubdate ( self ): ... """ Returns the pubdate for every item in the feed. """ item_pubdate = datetime . datetime ( 2005 , 5 , 3 ) # Hard-coded pubdate. # ITEM UPDATED - ... ... authors = models . ManyToManyField ( Author ) publisher = models . ForeignKey ( Publisher , on_delete = models . CASCADE ) pubdate = models . DateField () class Store ( models . Model ): name = models . CharField ( max_length = 300 ) books = models . Ma ... また、各出版社が管理している本のうち、最も古い本を教えてもらうこともできます: >>> Publisher . objects . aggregate ( oldest_pubdate = Min ( "book__pubdate" )) (結果は 'oldest_pubdate' というキーで参照できるようになります。もしこのように別名を指定しなけれ ... ば、キーの名前は 'book__pubdate__min' のように長くなります。) これは外部キーだけに適用されるわけではありません。多対多のリレーションシップにも使えます。た ... ... する必要があります。 add_item ( title , link , description , author_email = None , author_name = None , author_link = None , pubdate = None , comments = None , unique_id = None , categories = () , item_copyright = None , ttl = None , updateddate = None , ... enclosures = None , ** kwargs ) [ソース] フィードにアイテムを追加します。すべての引数は文字列であることが前提ですが、 pubdate と updateddate は datetime.datetime オブジェクトであり、 enclosures は Enclosure インスタンスのリストです。 num_items () [ ... れたエンコーディングでフィードを文字列として返します。 latest_post_date () [ソース] フィード内のすべてのアイテムの中で最新の pubdate または updateddate を返します。これらの属性を持つアイテムがない場合は、現在のUTC日付/時間を返します。 Enclosure class Encl ... ... le output. django.contrib.syndication The Atom1Feed syndication feed's updated element now utilizes updateddate instead of pubdate , allowing the published element to be included in the feed (which relies on pubdate ). キャッシュ Access to caches config ... ... 1.11.1) in DATABASES . See トランザクションプールとサーバーサイドカーソル for more discussion. その他 フィードのアイテムが pubdate や updateddate 属性を持たない場合、 SyndicationFeed.latest_post_date() がタイムゾーン情報を持たない日時ではなく現在の UTC ... 2026年10月08日