per page, with , order by , clip by
Results of 1 - 10 of about 14 for stories (0.006 sec.)
クエリ式 (Query Expression) — Django 6.1 ドキュメント 12165
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クエリ式 (Query Expression) ¶ クエリ式 (query expression) は、update、create、filter、order by、annotation、またはaggregateの一部として使用できる値ま ... う。通常はこのようにします: # Tintin filed a news story! reporter = Reporters . objects . get ( name = "Tintin" ) reporter . stories_filed += 1 reporter . save () ここでは、 reporter.stories_filed の値をデータベースからメモリに取り込んで、Pythonでおなじみ ... ようにすることもできます: from django.db.models import F reporter = Reporters . objects . get ( name = "Tintin" ) reporter . stories_filed = F ( "stories_filed" ) + 1 reporter . save () reporter.stories_filed = F('stories_filed') + 1 はインスタンス属性に値 ... F() インスタンスを見つけると、標準のPython演算子をオーバーライドしてカプセル化されたSQL式を作成します。この場合、 reporter.stories_filed によって表されるデータベースフィールドをインクリメントするようにデータベースに指示する式が作成されます。 reporter.st ...
https://man.mtool.work/django/6.1/ref/models/expressions.html
クエリ式 (Query Expression) — Django 6.1 ドキュメント 12165
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クエリ式 (Query Expression) ¶ クエリ式 (query expression) は、update、create、filter、order by、annotation、またはaggregateの一部として使用できる値ま ... う。通常はこのようにします: # Tintin filed a news story! reporter = Reporters . objects . get ( name = "Tintin" ) reporter . stories_filed += 1 reporter . save () ここでは、 reporter.stories_filed の値をデータベースからメモリに取り込んで、Pythonでおなじみ ... ようにすることもできます: from django.db.models import F reporter = Reporters . objects . get ( name = "Tintin" ) reporter . stories_filed = F ( "stories_filed" ) + 1 reporter . save () reporter.stories_filed = F('stories_filed') + 1 はインスタンス属性に値 ... F() インスタンスを見つけると、標準のPython演算子をオーバーライドしてカプセル化されたSQL式を作成します。この場合、 reporter.stories_filed によって表されるデータベースフィールドをインクリメントするようにデータベースに指示する式が作成されます。 reporter.st ...
https://man.mtool.work/django/6.1/ref/models/expressions.html
管理アクション — Django 6.1 ドキュメント 10748
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 管理アクション ¶ Djangoの管理者の基本的な仕事は、一言で言えば、「オブジェクトを選択し、それを変更する」ことに尽きます。これは大多数のユースケースに当 ... 人にやさしい名前をつけることができます: from django.contrib import admin ... @admin . action ( description = "Mark selected stories as published" ) def make_published ( modeladmin , request , queryset ): queryset . update ( status = "p" ) 注釈 これには見 ... になります: from django.contrib import admin from myapp.models import Article @admin . action ( description = "Mark selected stories as published" ) def make_published ( modeladmin , request , queryset ): queryset . update ( status = "p" ) class ArticleAd ... ass ArticleAdmin ( admin . ModelAdmin ): ... actions = [ "make_published" ] @admin . action ( description = "Mark selected stories as published" ) def make_published ( self , request , queryset ): queryset . update ( status = "p" ) まず make_published を ...
https://man.mtool.work/django/6.1/ref/contrib/admin/actions.html
管理アクション — Django 6.1 ドキュメント 10590
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 管理アクション ¶ Djangoの管理者の基本的な仕事は、一言で言えば、「オブジェクトを選択し、それを変更する」ことに尽きます。これは大多数のユースケースに当 ... 人にやさしい名前をつけることができます: from django.contrib import admin ... @admin . action ( description = "Mark selected stories as published" ) def make_published ( modeladmin , request , queryset ): queryset . update ( status = "p" ) 注釈 これには見 ... になります: from django.contrib import admin from myapp.models import Article @admin . action ( description = "Mark selected stories as published" ) def make_published ( modeladmin , request , queryset ): queryset . update ( status = "p" ) class ArticleAd ... ass ArticleAdmin ( admin . ModelAdmin ): ... actions = [ "make_published" ] @admin . action ( description = "Mark selected stories as published" ) def make_published ( self , request , queryset ): queryset . update ( status = "p" ) まず make_published を ...
https://man.mtool.work/django/6.1/ref/contrib/admin/actions.html
テンプレート — Django 6.1 ドキュメント 8052
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テンプレート ¶ Django はウェブフレームワークなので、HTML を動的に生成する便利な手段が必要でした。最も一般的なアプローチは、テンプレートに頼ることです ... い。 You can use select_template() for flexible template loading. For example, if you've written a news story and want some stories to have custom templates, use something like select_template(['story_%s_detail.html' % story.id, 'story_detail.html']) . T ... hat'll allow you to use a custom template for an individual story, with a fallback template for stories that don't have custom templates. テンプレートを含む各ディレクトリの中のサブディレクトリにテンプレートを整理することは可能 ...
https://man.mtool.work/django/6.1/topics/templates.html
テンプレート — Django 6.1 ドキュメント 8052
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テンプレート ¶ Django はウェブフレームワークなので、HTML を動的に生成する便利な手段が必要でした。最も一般的なアプローチは、テンプレートに頼ることです ... い。 You can use select_template() for flexible template loading. For example, if you've written a news story and want some stories to have custom templates, use something like select_template(['story_%s_detail.html' % story.id, 'story_detail.html']) . T ... hat'll allow you to use a custom template for an individual story, with a fallback template for stories that don't have custom templates. テンプレートを含む各ディレクトリの中のサブディレクトリにテンプレートを整理することは可能 ...
https://man.mtool.work/django/6.1/topics/templates.html
設計思想 — Django 6.1 ドキュメント 7737
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 設計思想 ¶ このドキュメントでは、 Django の開発者たちがフレームワークの構築に取り入れ ている根本的な設計思想についていくつか解説します。それによって ... ケーションであっても異なるコンテキストによってURLが異なるものになることを許容すべきです。例えば、ストーリーに関するページを /stories/ に配置し、別のページでは /news/ を使うかもしれません。 無限の柔軟性 ¶ URLは可能な限り柔軟性を持たせています。考えうる URL ...
https://man.mtool.work/django/6.1/misc/design-philosophies.html
モデルの Meta オプション — Django 6.1 ドキュメント 7737
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデルの Meta オプション ¶ このドキュメントでは、モデル内部の class Meta 内でモデルに与えられる、すべての可能な メタデータオプション を説明します。 ... case になります。 verbose_name_plural ¶ Options. verbose_name_plural ¶ オブジェクトの名前の複数形: verbose_name_plural = "stories" 指定されない場合、 Django は verbose_name + "s" を使用します。 読み取り専用の Meta 属性 ¶ label ¶ Options. label ¶ オブジ ...
https://man.mtool.work/django/6.1/ref/models/options.html
設計思想 — Django 6.1 ドキュメント 7737
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 設計思想 ¶ このドキュメントでは、 Django の開発者たちがフレームワークの構築に取り入れ ている根本的な設計思想についていくつか解説します。それによって ... ケーションであっても異なるコンテキストによってURLが異なるものになることを許容すべきです。例えば、ストーリーに関するページを /stories/ に配置し、別のページでは /news/ を使うかもしれません。 無限の柔軟性 ¶ URLは可能な限り柔軟性を持たせています。考えうる URL ...
https://man.mtool.work/django/6.1/misc/design-philosophies.html
モデルの Meta オプション — Django 6.1 ドキュメント 7737
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデルの Meta オプション ¶ このドキュメントでは、モデル内部の class Meta 内でモデルに与えられる、すべての可能な メタデータオプション を説明します。 ... case になります。 verbose_name_plural ¶ Options. verbose_name_plural ¶ オブジェクトの名前の複数形: verbose_name_plural = "stories" 指定されない場合、 Django は verbose_name + "s" を使用します。 読み取り専用の Meta 属性 ¶ label ¶ Options. label ¶ オブジ ...
https://man.mtool.work/django/6.1/ref/models/options.html
PREV 1 2 NEXT