... 特定のカテゴリに属する全てのブログエントリを表示するフィード (カテゴリは可変)) もあります。 フィードクラスは django.contrib.syndication.views.Feed のサブクラスです。これらはコードベースのどこにでも置くことができます。 Feed クラスのインスタンスは、 URLconf で ... の単純な例は、ある警察のニュースサイトから引用したもので、最新の5つのニュースのフィードを記述しています: from django.contrib.syndication.views import Feed from django.urls import reverse from policebeat.models import NewsItem class LatestEntriesFeed ( Feed ): ... EntriesFeed urlpatterns = [ # ... path ( "latest/feed/" , LatestEntriesFeed ()), # ... ] 備考: Feedクラスは django.contrib.syndication.views.Feed のサブクラスです。 title 、 link 、および description は、それぞれ標準RSSの <title> , <link> , <description> 要 ... ... JANGO_COLORS environment variable to modify or disable the colors used by django-admin.py to provide syntax highlighting . Syndication feeds as views Syndication feeds can now be used directly as views in your URLconf . This means that you can maintain comp ... tion-based test runners will still work, but should be updated to use the new class-based runners . Feed in django.contrib.syndication.feeds The django.contrib.syndication.feeds.Feed class has been replaced by the django.contrib.syndication.views.Feed class ... categories" : LatestEntriesByCategory , } urlpatterns = patterns ( "" , # ... ( r "^feeds/(?P<url>.*)/$" , "django.contrib.syndication.views.feed" , { "feed_dict" : feeds }, ), # ... ) Using the new Feed class, these feeds can be deployed directly as views: ... ... rib.postgres redirects (リダイレクト)アプリ サイトマップ・フレームワーク "sites" フレームワーク staticfiles アプリ 配信 (syndication) フィード フレームワーク admin Djangoの自動管理インターフェースです。詳細は、 チュートリアル その2 および admin ドキュメン ... さい。 sitemaps GoogleのサイトマップXMLファイルを生成するためのフレームワーク。 sitemaps のドキュメント を参照してください。 syndication RSS および Atom 形式の配信フィードを簡単に生成するためのフレームワークです。 syndication のドキュメント を参照してください ... ... ango.contrib.sites.middleware Site middleware. django.contrib.staticfiles An app for handling static files. django.contrib.syndication A framework for generating syndication feeds, in RSS and Atom, quite easily. django.core django.core.checks django.core.ex ... ors for views. django.utils.encoding A series of helper functions to manage character encoding. django.utils.feedgenerator Syndication feed generation library -- used for generating RSS, etc. django.utils.functional Functional programming tools. django.util ... ... ワークのドキュメント を参照してください。 カスタマイズ例 API リファレンス Feed サブクラス class Feed [ソース] django.contrib.syndication.views.Feed 基底クラスに提供されているメソッドに加えて、GeoDjango の Feed クラスは以下のオーバーライドを提供します。これらの ... ば次のようになります: class ZipcodeFeed ( Feed ): def item_geometry ( self , obj ): # Returns the polygon. return obj . poly SyndicationFeed サブクラス 以下の django.utils.feedgenerator.SyndicationFeed のサブクラスが利用可能です: class GeoRSSFeed [ソース] cla ... ... n necessary ( #29193 ). Fixed crashes in django.contrib.admindocs when a view is a callable object, such as django.contrib.syndication.views.Feed ( #29296 ). Fixed a regression in Django 1.11.12 where QuerySet.values() or values_list() after combining an an ... ... n necessary ( #29193 ). Fixed crashes in django.contrib.admindocs when a view is a callable object, such as django.contrib.syndication.views.Feed ( #29296 ). Fixed a regression in Django 2.0.4 where QuerySet.values() or values_list() after combining an anno ... ... : $ django-admin.py runserver --settings = foo.bar シンジケーション Feed.__init__ has changed The __init__() method of the syndication framework's Feed class now takes an HttpRequest object as its second parameter, instead of the feed's URL. This allows the ... syndication framework to work without requiring the sites framework. This only affects code that subclasses Feed and overrides the __i ... ... trib.sessions The new get_session_cookie_age() method allows dynamically specifying the session cookie age. django.contrib.syndication Added the language class attribute to the django.contrib.syndication.views.Feed to customize a feed language. The default ... ... meaning it will show the relative paths of the directories it searched. See findstatic for example output. django.contrib.syndication The Atom1Feed syndication feed's updated element now utilizes updateddate instead of pubdate , allowing the published elem ... 発生させた場合、 pytz をインストールする必要があります。 Django のタイムゾーンに関連した日付フォーマットや、 django.contrib.syndication を使っている場合、この問題の影響を受ける可能性があります。 remove() and clear() methods of related managers The remove() a ... 2026年10月08日