per page, with , order by , clip by
Results of 1 - 10 of about 16 for story (0.005 sec.)
多対一 (many-to-one) 関係 — Django 6.1 ドキュメント 12701
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 多対一 (many-to-one) 関係 ¶ 多対一のリレーションシップを定義するには ForeignKey を使います。 この例では、 Reporter は複数の Article オブジェクトと関 ... porter オブジェクトを使って Article を作成する: >>> new_article = r . article_set . create ( ... headline = "John's second story" , pub_date = date ( 2005 , 7 , 29 ) ... ) >>> new_article <Article: John's second story> >>> new_article . reporter <Repo ... new_article . reporter . id 1 新しい記事を作成する: >>> new_article2 = Article . objects . create ( ... headline = "Paul's story" , pub_date = date ( 2006 , 1 , 17 ), reporter = r ... ) >>> new_article2 . reporter <Reporter: John Smith> >>> new_articl ... e2 . reporter . id 1 >>> r . article_set . all () <QuerySet [<Article: John's second story>, <Article: Paul's story>, <Article: This is a test>]> 同じ記事を別の記事セットに追加する - 移動することを確認します: >>> ...
https://man.mtool.work/django/6.1/topics/db/examples/many_to_one.html
多対一 (many-to-one) 関係 — Django 6.1 ドキュメント 12667
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 多対一 (many-to-one) 関係 ¶ 多対一のリレーションシップを定義するには ForeignKey を使います。 この例では、 Reporter は複数の Article オブジェクトと関 ... porter オブジェクトを使って Article を作成する: >>> new_article = r . article_set . create ( ... headline = "John's second story" , pub_date = date ( 2005 , 7 , 29 ) ... ) >>> new_article <Article: John's second story> >>> new_article . reporter <Repo ... new_article . reporter . id 1 新しい記事を作成する: >>> new_article2 = Article . objects . create ( ... headline = "Paul's story" , pub_date = date ( 2006 , 1 , 17 ), reporter = r ... ) >>> new_article2 . reporter <Reporter: John Smith> >>> new_articl ... e2 . reporter . id 1 >>> r . article_set . all () <QuerySet [<Article: John's second story>, <Article: Paul's story>, <Article: This is a test>]> 同じ記事を別の記事セットに追加する - 移動することを確認します: >>> ...
https://man.mtool.work/django/6.1/topics/db/examples/many_to_one.html
テンプレート — Django 6.1 ドキュメント 10223
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テンプレート ¶ Django はウェブフレームワークなので、HTML を動的に生成する便利な手段が必要でした。最も一般的なアプローチは、テンプレートに頼ることです ... t" , ], }, { "BACKEND" : "django.template.backends.jinja2.Jinja2" , "DIRS" : [ "/home/html/jinja2" , ], }, ] get_template('story_detail.html') を呼び出した場合、Django は次の順番にファイルを探します。 /home/html/example.com/story_detail.html ( 'django ... ' エンジン) /home/html/default/story_detail.html ( 'django' エンジン) /home/html/jinja2/story_detail.html ( 'jinja2' エンジン) select_template(['story_253_deta ... il.html', 'story_detail.html']) を呼び出した場合、Djangoは以下の順番にファイルを探します。 /home/html/example.com/story_253_detail.html ( ' ...
https://man.mtool.work/django/6.1/topics/templates.html
テンプレート — Django 6.1 ドキュメント 10223
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テンプレート ¶ Django はウェブフレームワークなので、HTML を動的に生成する便利な手段が必要でした。最も一般的なアプローチは、テンプレートに頼ることです ... t" , ], }, { "BACKEND" : "django.template.backends.jinja2.Jinja2" , "DIRS" : [ "/home/html/jinja2" , ], }, ] get_template('story_detail.html') を呼び出した場合、Django は次の順番にファイルを探します。 /home/html/example.com/story_detail.html ( 'django ... ' エンジン) /home/html/default/story_detail.html ( 'django' エンジン) /home/html/jinja2/story_detail.html ( 'jinja2' エンジン) select_template(['story_253_deta ... il.html', 'story_detail.html']) を呼び出した場合、Djangoは以下の順番にファイルを探します。 /home/html/example.com/story_253_detail.html ( ' ...
https://man.mtool.work/django/6.1/topics/templates.html
Django テンプレート言語 — Django 6.1 ドキュメント 8092
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django テンプレート言語 ¶ このドキュメントはDjangoテンプレートシステムの文法を説明しています。もしあなたがもっと技術者的な観点でどう動かすかやどう拡 ... .html" %} {% block title %}{{ section.title }}{% endblock %} {% block content %} < h1 > {{ section.title }} </ h1 > {% for story in story_list %} < h2 > < a href = " {{ story.get_absolute_url }} " > {{ story.headline | upper }} </ a > </ h2 > < p > {{ ... story.tease | truncatewords :"100" }} </ p > {% endfor %} {% endblock %} 設計思想 なぜ、(ZopeのTALのような) XMLベースのテンプレー ...
https://man.mtool.work/django/6.1/ref/templates/language.html
Django テンプレート言語 — Django 6.1 ドキュメント 8057
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django テンプレート言語 ¶ このドキュメントはDjangoテンプレートシステムの文法を説明しています。もしあなたがもっと技術者的な観点でどう動かすかやどう拡 ... .html" %} {% block title %}{{ section.title }}{% endblock %} {% block content %} < h1 > {{ section.title }} </ h1 > {% for story in story_list %} < h2 > < a href = " {{ story.get_absolute_url }} " > {{ story.headline | upper }} </ a > </ h2 > < p > {{ ... story.tease | truncatewords :"100" }} </ p > {% endfor %} {% endblock %} 設計思想 なぜ、(ZopeのTALのような) XMLベースのテンプレー ...
https://man.mtool.work/django/6.1/ref/templates/language.html
ルックアップ API リファレンス — Django 6.1 ドキュメント 7728
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ルックアップ API リファレンス ¶ このドキュメントには、データベースクエリの WHERE 句を構築するための Django API であるルックアップの API リファレンス ... ssThan ( F ( "word_count" ), 7500 )) ...下記のように、アノテーションでも使用できます: Book . objects . annotate ( is_short_story = LessThan ( F ( "word_count" ), 7500 )) lhs ¶ 左辺 - ルックアップされる対象。オブジェクトは通常 クエリ式API に従います。プ ...
https://man.mtool.work/django/6.1/ref/models/lookups.html
ルックアップ API リファレンス — Django 6.1 ドキュメント 7728
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ルックアップ API リファレンス ¶ このドキュメントには、データベースクエリの WHERE 句を構築するための Django API であるルックアップの API リファレンス ... ssThan ( F ( "word_count" ), 7500 )) ...下記のように、アノテーションでも使用できます: Book . objects . annotate ( is_short_story = LessThan ( F ( "word_count" ), 7500 )) lhs ¶ 左辺 - ルックアップされる対象。オブジェクトは通常 クエリ式API に従います。プ ...
https://man.mtool.work/django/6.1/ref/models/lookups.html
管理アクション — Django 6.1 ドキュメント 7676
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 管理アクション ¶ Djangoの管理者の基本的な仕事は、一言で言えば、「オブジェクトを選択し、それを変更する」ことに尽きます。これは大多数のユースケースに当 ... self , request , queryset ): updated = queryset . update ( status = "p" ) self . message_user ( request , ngettext ( " %d story was successfully marked as published." , " %d stories were successfully marked as published." , updated , ) % updated , me ...
https://man.mtool.work/django/6.1/ref/contrib/admin/actions.html
contenttypes フレームワーク — Django 6.1 ドキュメント 7676
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » contenttypes フレームワーク ¶ Django には contenttypes アプリケーションが含まれており、 Django を使ったプロジェクトにインストールされているすべてのモ ... with a foreign key to ContentType ; this lets Permission represent concepts like "can add blog entry" or "can delete news story". ContentTypeManager ¶ class ContentTypeManager [ソース] ¶ ContentType にはカスタムマネージャー ContentTypeManager もあり、 ...
https://man.mtool.work/django/6.1/ref/contrib/contenttypes.html
PREV 1 2 NEXT