... 次のようになります: from django.contrib.sitemaps import Sitemap from blog.models import Entry class BlogSitemap ( Sitemap ): changefreq = "never" priority = 0.5 def items ( self ): return Entry . objects . filter ( is_draft = False ) def lastmod ( self , obj ... ): return obj . pub_date 備考: changefreq と priority はそれぞれ <changefreq> と <priority> 要素に対応するクラス属性です。これらは例の lastmod のように関数として呼び ... s. The objects returned will get passed to any callable methods corresponding to a sitemap property ( location , lastmod , changefreq , and priority ). lastmod は datetime を返すべきです。 There is no location method in this example, but you can provide it ... ... 次のようになります: from django.contrib.sitemaps import Sitemap from blog.models import Entry class BlogSitemap ( Sitemap ): changefreq = "never" priority = 0.5 def items ( self ): return Entry . objects . filter ( is_draft = False ) def lastmod ( self , obj ... ): return obj . pub_date 備考: changefreq と priority はそれぞれ <changefreq> と <priority> 要素に対応するクラス属性です。これらは例の lastmod のように関数として呼び ... s. The objects returned will get passed to any callable methods corresponding to a sitemap property ( location , lastmod , changefreq , and priority ). lastmod は datetime を返すべきです。 There is no location method in this example, but you can provide it ... ... いる flatpages を見て、サイトマップにエントリを作成します。これらのエントリには、 location 属性のみが含まれます。 lastmod や changefreq , priority は含まれません。 カスタマイズ例 ¶ 以下は FlatPageSitemap を使用したURLconfの例です: from django.contrib.flatpag ... ... いる flatpages を見て、サイトマップにエントリを作成します。これらのエントリには、 location 属性のみが含まれます。 lastmod や changefreq , priority は含まれません。 カスタマイズ例 ¶ 以下は FlatPageSitemap を使用したURLconfの例です: from django.contrib.flatpag ... ... の属性) change_view() (ModelAdmin のメソッド) changed_data (Form の属性) changed_objects (models.BaseModelFormSet の属性) changefreq (Sitemap の属性) changelist_view() (ModelAdmin のメソッド) changepassword django-admin command changepassword コマンドライ ... ... の属性) change_view() (ModelAdmin のメソッド) changed_data (Form の属性) changed_objects (models.BaseModelFormSet の属性) changefreq (Sitemap の属性) changelist_view() (ModelAdmin のメソッド) changepassword django-admin command changepassword コマンドライ ... 2026年10月08日