per page, with , order by , clip by
Results of 1 - 10 of about 33 for items (0.088 sec.)
配信 (syndication) フィード フレームワーク 14984
配信 (syndication) フィード フレームワーク Django には、 RSS と Atom フィードを作成するための高レベルな配信 (syndication) フィード生成フレームワークが付属しています。 任意の配信フィードを作成するには、短い Python クラスを書くだけで済みます。 ... = "Police beat site news" link = "/sitenews/" description = "Updates on changes and additions to police beat central." def items ( self ): return NewsItem . objects . order_by ( "-pub_date" )[: 5 ] def item_title ( self , item ): return item . title d ... ブクラスです。 title 、 link 、および description は、それぞれ標準RSSの <title> , <link> , <description> 要素に対応します。 items() は、フィードに含めるべきオブジェクトのリストを返すメソッドです。この例では、Djangoの ORM を使用して NewsItem オブジェクト ... を返しますが、 items() は必ずモデルインスタンスを返す必要はありません。Django モデルを使用することで、いくつかの機能が「タダ」で提供されますが、 ...
https://man.mtool.work/django/6.1/ref/contrib/syndication.html
サイトマップ・フレームワーク 12738
サイトマップ・フレームワーク Djangoには、 sitemap XML ファイルを作成するための高レベルなサイトマップ生成フレームワークが付属しています。 概要 サイトマップとは、検索エンジンのインデクサーに、ページの変更頻度や、あるページがサイト内の他のペー ... temaps 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 備考: cha ... れ <changefreq> と <priority> 要素に対応するクラス属性です。これらは例の lastmod のように関数として呼び出すことができます。 items() is a method that returns a sequence or QuerySet of objects. The objects returned will get passed to any callable methods ... esult. Sitemap クラス リファレンス class Sitemap [ソース] サイトマップ Sitemap クラスは以下のメソッドや属性を定義できます: items () [ソース] Required. A method that returns a sequence or QuerySet of objects. The framework doesn't care what type of obj ...
https://man.mtool.work/django/6.1/ref/contrib/sitemaps.html
ページ分割 (Paginator) 9513
ページ分割 (Paginator) Django はページ分割されたデータを管理するのに役立ついくつかのクラスを提供しています。これらのクラスは django/core/paginator.py にあります。 例については ページ分割 (Pagination) のトピックガイド を参照してください。 Pa ... phans オプション引数を参照)。 Paginator. orphans Optional. Use this when you don't want to have a last page with very few items. If the last page would normally have a number of items less than or equal to orphans , then those items will be added to ... the previous page (which becomes the last page) instead of leaving the items on a page by themselves. For example, with 23 items, per_page=10 , and orphans=3 , there will be two pages; the first page ... with 10 items and the second (and last) page with 13 items. orphans defaults to zero, which means pages are never combined and the last ...
https://man.mtool.work/django/6.1/ref/paginator.html
クラスベースのジェネリックビュー: フラットインデックス 9112
クラスベースのジェネリックビュー: フラットインデックス この索引は、クラスベースビューのリファレンス文書を、異なる観点から編成したものです。ビューごとに、クラスツリーの有効な属性とメソッドが表されます。動作を定義するクラスの観点から編集された ... t_template_names() ] template_name_suffix メソッド as_view() dispatch() get() get_context_data() get_date_list() get_dated_items() get_dated_queryset() get_paginator() head() http_method_not_allowed() paginate_queryset() render_to_response() setup() Y ... ear() ] year_format [ get_year_format() ] メソッド as_view() dispatch() get() get_context_data() get_date_list() get_dated_items() get_dated_queryset() get_paginator() head() http_method_not_allowed() paginate_queryset() render_to_response() setup() M ... ear() ] year_format [ get_year_format() ] メソッド as_view() dispatch() get() get_context_data() get_date_list() get_dated_items() get_dated_queryset() get_next_month() get_paginator() get_previous_month() head() http_method_not_allowed() paginate_que ...
https://man.mtool.work/django/6.1/ref/class-based-views/flattened-index.html
Django 3.2.8 リリースノート 8310
Django 3.2.8 リリースノート October 5, 2021 Django 3.2.8 fixes two bugs in 3.2.7. バグ修正 Fixed a bug in Django 3.2 that caused incorrect links on read-only fields in the admin ( #33077 ). Fixed a regression in Django 3.2 that caused incor ... rect selection of items across all pages when actions were placed both on the top and bottom of the admin change-list view ( #33083 ). ...
https://man.mtool.work/django/6.1/releases/3.2.8.html
Coding style 8149
Coding style Please follow these coding standards when writing code for inclusion in Django. Pre-commit checks pre-commit is a framework for managing pre-commit hooks. These hooks help to identify simple issues before committing code for re ... tive import ( from .foo import Bar ) for local components. Avoid multi-dot relative imports. On each line, alphabetize the items with the upper case items grouped before the lowercase items. Break long lines using parentheses and indent continuation l ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
PostgreSQL 固有のモデルインデックス 7989
PostgreSQL 固有のモデルインデックス 以下はPostgreSQL固有の django.contrib.postgres.indexes モジュールから利用可能な インデックス です。 BloomIndex class BloomIndex ( * expressions , length = None , columns = () , ** options ) [ソース] bloom ... 。 pages_per_range 引数は正の整数を取ります。 BTreeIndex class BTreeIndex ( * expressions , fillfactor = None , deduplicate_items = None , ** options ) [ソース] B-Tree インデックスを作成します。 fillfactor パラメータには、インデックスページがどれだけ詰 ... め込まれるかを調整するために、10 から 100 の整数値を指定してください。PostgreSQL のデフォルト値は 90 です。 deduplicate_items パラメータに真偽値を指定して、重複排除が有効かどうかを制御します。PostgreSQLでは、重複排除はデフォルトで有効になっています ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/indexes.html
Django 1.6.2 リリースノート 7989
Django 1.6.2 リリースノート February 6, 2014 This is Django 1.6.2, a bugfix release for Django 1.6. Django 1.6.2 fixes several bugs in 1.6.1: Prevented the base geometry object of a prepared geometry to be garbage collected, which could lea ... but Django pretended it was. Fixed a regression in multiple-table inheritance exclude() queries ( #21787 ). Added missing items to django.utils.timezone.__all__ ( #21880 ). Fixed a field misalignment issue with select_related() and model inheritance ...
https://man.mtool.work/django/6.1/releases/1.6.2.html
Django 1.8.9 リリースノート 7989
Django 1.8.9 リリースノート February 1, 2016 Django 1.8.9 fixes several bugs in 1.8.8. バグ修正 Fixed a regression that caused the "user-tools" items to display on the admin's logout page ( #26035 ). Fixed a crash in the translations system ...
https://man.mtool.work/django/6.1/releases/1.8.9.html
リクエストとレスポンスのオブジェクト 7909
リクエストとレスポンスのオブジェクト 簡単な概要 Django は、システムを通じてステータスを渡すために、リクエストとレスポンスのオブジェクトを使います。 あるページがリクエストされたとき、Django はリクエストに関するメタデータを含んだ HttpRequest ... = True ) >>> q . update ({ "a" : "2" }) >>> q . getlist ( "a" ) ['1', '2'] >>> q [ "a" ] # returns the last '2' QueryDict. items () dict.items() と似ていますが、これは __getitem__() と同じ最後の値のロジックを使用し、ビューオブジェクトの代わりにイテレー ... タオブジェクトを返します。例えば: >>> q = QueryDict ( "a=1&a=2&a=3" ) >>> list ( q . items ()) [('a', '3')] QueryDict. values () dict.values() のように、 __getitem__() と同じ最後の値のロジックを使用しますが、ビュー ... ault_list = None ) [ソース] setdefault() に似ていますが、単一の値の代わりに値のリストを取ります。 QueryDict. lists () Like items() , except it includes all values, as a list, for each member of the dictionary. For example: >>> q = QueryDict ( "a=1&a=2 ...
https://man.mtool.work/django/6.1/ref/request-response.html
PREV 1 2 3 4 NEXT