per page, with , order by , clip by
Results of 1 - 10 of about 54 for item (0.009 sec.)
配信 (syndication) フィード フレームワーク — Django 6.1 ドキュメント 14195
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 配信 (syndication) フィード フレームワーク ¶ Django には、 RSS と Atom フィードを作成するための高レベルな配信 (syndication) フィード生成フレームワー ... います: 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 an ... d additions to police beat central." def items ( self ): return NewsItem . objects . order_by ( "-pub_date" )[: 5 ] def item_title ( self , item ): return item . title ... def item_description ( self , item ): return item . description # item_link is only needed if NewsItem has no get_absolute_url meth ...
https://man.mtool.work/django/6.1/ref/contrib/syndication.html
配信 (syndication) フィード フレームワーク — Django 6.1 ドキュメント 14195
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 配信 (syndication) フィード フレームワーク ¶ Django には、 RSS と Atom フィードを作成するための高レベルな配信 (syndication) フィード生成フレームワー ... います: 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 an ... d additions to police beat central." def items ( self ): return NewsItem . objects . order_by ( "-pub_date" )[: 5 ] def item_title ( self , item ): return item . title ... def item_description ( self , item ): return item . description # item_link is only needed if NewsItem has no get_absolute_url meth ...
https://man.mtool.work/django/6.1/ref/contrib/syndication.html
複合主キー — Django 6.1 ドキュメント 9330
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 複合主キー ¶ Django では、すべてのモデルに主キーが存在します。デフォルトでは、この主キーは単一のフィールドで構成されます。 ほとんどの場合、単一の主キ ... 0 ) class Order ( models . Model ): reference = models . CharField ( max_length = 20 , primary_key = True ) class OrderLineItem ( models . Model ): pk = models . CompositePrimaryKey ( "product_id" , "order_id" ) product = models . ForeignKey ( Produc ... > product = Product . objects . create ( name = "apple" ) >>> order = Order . objects . create ( reference = "A755H" ) >>> item = OrderLineItem . objects . create ( product = product , order = order , quantity = 1 ) >>> item . pk (1, "A755H") pk 属性 ... に tuple を代入することで、対応するフィールドの値をまとめて設定できます: >>> item = OrderLineItem ( pk = ( 2 , "B142C" )) >>> item . pk (2, "B142C") >>> item . product_id 2 >>> item . order_id "B142C" 複合 ...
https://man.mtool.work/django/6.1/topics/composite-primary-key.html
複合主キー — Django 6.1 ドキュメント 9330
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 複合主キー ¶ Django では、すべてのモデルに主キーが存在します。デフォルトでは、この主キーは単一のフィールドで構成されます。 ほとんどの場合、単一の主キ ... 0 ) class Order ( models . Model ): reference = models . CharField ( max_length = 20 , primary_key = True ) class OrderLineItem ( models . Model ): pk = models . CompositePrimaryKey ( "product_id" , "order_id" ) product = models . ForeignKey ( Produc ... > product = Product . objects . create ( name = "apple" ) >>> order = Order . objects . create ( reference = "A755H" ) >>> item = OrderLineItem . objects . create ( product = product , order = order , quantity = 1 ) >>> item . pk (1, "A755H") pk 属性 ... に tuple を代入することで、対応するフィールドの値をまとめて設定できます: >>> item = OrderLineItem ( pk = ( 2 , "B142C" )) >>> item . pk (2, "B142C") >>> item . product_id 2 >>> item . order_id "B142C" 複合 ...
https://man.mtool.work/django/6.1/topics/composite-primary-key.html
地理情報フィード — Django 6.1 ドキュメント 9211
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 地理情報フィード ¶ GeoDjango には独自の Feed サブクラスがあり、 Simple GeoRSS または W3C Geo 標準に従ってフォーマットされた RSS/Atom フィードに位置情 ... してください: from django.contrib.gis.feeds import Feed class MyFeed ( Feed ): # First, as a class attribute. geometry = ... item_geometry = ... # Also a function with no arguments def geometry ( self ): ... def item_geometry ( self ): ... # And as a f ... unction with a single argument def geometry ( self , obj ): ... def item_geometry ( self , item ): ... geometry ( obj ) ¶ get_object() で返されたオブジェクトを受け取り、 feed のジオメトリを返しま ... obj ): # Can also return: `obj.poly`, and `obj.poly.centroid`. return obj . poly . extent # tuple like: (X0, Y0, X1, Y1). item_geometry ( item ) ¶ これをセットすると、フィードの各 アイテム のジオメトリを返します。これは GEOSGeometry のインスタンス、 ...
https://man.mtool.work/django/6.1/ref/contrib/gis/feeds.html
地理情報フィード — Django 6.1 ドキュメント 9137
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 地理情報フィード ¶ GeoDjango には独自の Feed サブクラスがあり、 Simple GeoRSS または W3C Geo 標準に従ってフォーマットされた RSS/Atom フィードに位置情 ... してください: from django.contrib.gis.feeds import Feed class MyFeed ( Feed ): # First, as a class attribute. geometry = ... item_geometry = ... # Also a function with no arguments def geometry ( self ): ... def item_geometry ( self ): ... # And as a f ... unction with a single argument def geometry ( self , obj ): ... def item_geometry ( self , item ): ... geometry ( obj ) ¶ get_object() で返されたオブジェクトを受け取り、 feed のジオメトリを返しま ... obj ): # Can also return: `obj.poly`, and `obj.poly.centroid`. return obj . poly . extent # tuple like: (X0, Y0, X1, Y1). item_geometry ( item ) ¶ これをセットすると、フィードの各 アイテム のジオメトリを返します。これは GEOSGeometry のインスタンス、 ...
https://man.mtool.work/django/6.1/ref/contrib/gis/feeds.html
サイトマップ・フレームワーク — Django 6.1 ドキュメント 8113
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » サイトマップ・フレームワーク ¶ Djangoには、 sitemap XML ファイルを作成するための高レベルなサイトマップ生成フレームワークが付属しています。 概要 ¶ サ ... の作成を自動化します。 これは Django の 配信 (syndication) フレームワーク のように動作します。サイトマップを作成するには、 Sitemap クラスを書き、 URLconf の中でそれを指定します。 インストール ¶ サイトマップ アプリをインストールするには、以下の手順に従 ... ってください。 'django.contrib.sitemaps' を INSTALLED_APPS 設定に追加します。 TEMPLATES 設定には、 DjangoTemplates バックエンドが含まれており、 APP_DIRS オプシ ... 要があるのは、 Loader() テンプレートローダーがデフォルトのテンプレートを見つけられるようにするためです)。 初期設定 ¶ views. sitemap ( request , sitemaps , section = None , template_name = 'sitemap.xml' , content_type = 'application/xml' ) ¶ Django サイ ...
https://man.mtool.work/django/6.1/ref/contrib/sitemaps.html
サイトマップ・フレームワーク — Django 6.1 ドキュメント 8113
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » サイトマップ・フレームワーク ¶ Djangoには、 sitemap XML ファイルを作成するための高レベルなサイトマップ生成フレームワークが付属しています。 概要 ¶ サ ... の作成を自動化します。 これは Django の 配信 (syndication) フレームワーク のように動作します。サイトマップを作成するには、 Sitemap クラスを書き、 URLconf の中でそれを指定します。 インストール ¶ サイトマップ アプリをインストールするには、以下の手順に従 ... ってください。 'django.contrib.sitemaps' を INSTALLED_APPS 設定に追加します。 TEMPLATES 設定には、 DjangoTemplates バックエンドが含まれており、 APP_DIRS オプシ ... 要があるのは、 Loader() テンプレートローダーがデフォルトのテンプレートを見つけられるようにするためです)。 初期設定 ¶ views. sitemap ( request , sitemaps , section = None , template_name = 'sitemap.xml' , content_type = 'application/xml' ) ¶ Django サイ ...
https://man.mtool.work/django/6.1/ref/contrib/sitemaps.html
Django ユーティリティ (django.utils) — Django 6.1 ドキュメント 7461
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django ユーティリティ ( django.utils ) ¶ このドキュメントは、 django.utils のすべての安定したモジュールを対象としています。 django.utils 内のほとんど ... = "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 ( ... であるべきです。 stylesheets には、文字列または Stylesheet インスタンスのいずれかのシーケンスを指定する必要があります。 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 ) [ソース] ¶ フィードにアイテムを追加し ...
https://man.mtool.work/django/6.1/ref/utils.html
Django ユーティリティ (django.utils) — Django 6.1 ドキュメント 7461
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django ユーティリティ ( django.utils ) ¶ このドキュメントは、 django.utils のすべての安定したモジュールを対象としています。 django.utils 内のほとんど ... = "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 ( ... であるべきです。 stylesheets には、文字列または Stylesheet インスタンスのいずれかのシーケンスを指定する必要があります。 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 ) [ソース] ¶ フィードにアイテムを追加し ...
https://man.mtool.work/django/6.1/ref/utils.html
PREV 1 2 3 4 5 6 NEXT