... ルな方法でフィードを生成したい場合に使用してください。 高レベルのフレームワーク 概要 高レベルのフィード生成フレームワークは Feed クラスによって提供されます。フィードを作成するには、 Feed クラスを記述し、 URLconf でそのインスタンスを指定します。 Feed ク ... ラス Feed クラスは配信フィードを表す Python クラスです。フィードは単純なもの (例えば、"サイトニュース" フィードや、ブログの最新エント ... する全てのブログエントリを表示するフィード (カテゴリは可変)) もあります。 フィードクラスは django.contrib.syndication.views.Feed のサブクラスです。これらはコードベースのどこにでも置くことができます。 Feed クラスのインスタンスは、 URLconf で使用できるビ ... ... jango の配信フレームワークのドキュメント を参照してください。 カスタマイズ例 API リファレンス Feed サブクラス class Feed [ソース] django.contrib.syndication.views.Feed 基底クラスに提供されているメソッドに加えて、GeoDjango ... の Feed クラスは以下のオーバーライドを提供します。これらのオーバーライドは複数の方法で行うことができますので、その点に注意してくだ ... さい: from django.contrib.gis.feeds import Feed class MyFeed ( Feed ): # First, as a class attribute. geometry = ... item_geometry = ... # Also a function wi ... ... 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 complete ... control over the URL structure of your feeds. Like any other view, feeds views are passed a request object, so you can do anything you would normally do with a view, ... like user based access control, or making a feed a named URL. GeoDjango The most significant new feature for GeoDjango in 1.2 is support for multiple spatial databases. As ... ... uri_path ( path ) [ソース] URI (Uniform Resource Identifier) のパス部分から安全でない文字をエスケープします。 django.utils.feedgenerator 使用例: >>> from django.utils import feedgenerator >>> feed = feedgenerator . Rss201rev2Feed ( ... title = "Poynt ... escription = "A group blog by the sharpest minds in online media/journalism/publishing." , ... language = "en" , ... ) >>> feed . add_item ( ... title = "Hello" , ... link = "https://www.holovaty.com/test/" , ... description = "Testing." , ... ) >>> ... with open ( "test.rss" , "w" ) as fp : ... feed . write ( fp , "utf-8" ) ... ジェネレータの選択を簡略化するには、現在は Rss201rev2Feed である feedgenerator.DefaultFeed を ... ... r runserver ...no longer works and should be changed to: $ 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 it ... s 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 su ... bclasses Feed and overrides the __init__() method, and code that calls Feed.__init__() directly. Data structures SortedDictFromList is g ... ... 93 ). 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 annotated and ... ... 93 ). 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 annotated and u ... ... cuments with a DTD, so this should not cause any issues with the typical round-trip from dumpdata to loaddata , but if you feed your own XML documents to the loaddata management command, you will need to ensure they do not contain a DTD. Formset memo ... ... cuments with a DTD, so this should not cause any issues with the typical round-trip from dumpdata to loaddata , but if you feed your own XML documents to the loaddata management command, you will need to ensure they do not contain a DTD. Formset memo ... ... 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 value is get_language() instead of LANGUAGE_CODE . キャッシュ add_never_cache_he ... 2026年10月08日