per page, with , order by , clip by
Results of 1 - 10 of about 112 for latest (0.003 sec.)
はじめての Django アプリ作成、その 3 — Django 6.1 ドキュメント 10644
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » はじめての Django アプリ作成、その 3 ¶ このチュートリアルは チュートリアルその 2 の続きです。ここでは、引続き Web 投票アプリケーションの開発を例にし ... 示するビューです: polls/views.py ¶ from django.http import HttpResponse from .models import Question def index ( request ): latest_question_list = Question . objects . order_by ( "-pub_date" )[: 5 ] output = ", " . join ([ q . question_text for q in lat ... プレートを置いたのは、そういうわけなのです。 テンプレートには次のコードを書きます: polls/templates/polls/index.html ¶ {% if latest_question_list %} < ul > {% for question in latest_question_list %} < li >< a href = "/polls/ {{ question.id }} /" > {{ que ... rom django.http import HttpResponse from django.template import loader from .models import Question def index ( request ): latest_question_list = Question . objects . order_by ( "-pub_date" )[: 5 ] template = loader . get_template ( "polls/index.html" ...
https://man.mtool.work/django/6.1/intro/tutorial03.html
はじめての Django アプリ作成、その 3 — Django 6.1 ドキュメント 10479
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » はじめての Django アプリ作成、その 3 ¶ このチュートリアルは チュートリアルその 2 の続きです。ここでは、引続き Web 投票アプリケーションの開発を例にし ... 示するビューです: polls/views.py ¶ from django.http import HttpResponse from .models import Question def index ( request ): latest_question_list = Question . objects . order_by ( "-pub_date" )[: 5 ] output = ", " . join ([ q . question_text for q in lat ... プレートを置いたのは、そういうわけなのです。 テンプレートには次のコードを書きます: polls/templates/polls/index.html ¶ {% if latest_question_list %} < ul > {% for question in latest_question_list %} < li >< a href = "/polls/ {{ question.id }} /" > {{ que ... rom django.http import HttpResponse from django.template import loader from .models import Question def index ( request ): latest_question_list = Question . objects . order_by ( "-pub_date" )[: 5 ] template = loader . get_template ( "polls/index.html" ...
https://man.mtool.work/django/6.1/intro/tutorial03.html
モデルの Meta オプション — Django 6.1 ドキュメント 10328
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデルの Meta オプション ¶ このドキュメントでは、モデル内部の class Meta 内でモデルに与えられる、すべての可能な メタデータオプション を説明します。 ... が存在するアプリケーションの名前とモデルの名前に置き換えられます。 抽象モデルの related name の段落を参照してください。 get_latest_by ¶ Options. get_latest_by ¶ モデル内のフィールド名またはフィールド名のリスト。通常は DateField , DateTimeField , Integer ... Field です。これはモデル Manager の latest() と earliest() メソッドで使用するデフォルトのフィールドを指定します。 実装例: # Latest by ascending order_date. get_lates ... t_by = "order_date" # Latest by priority descending, order_date ascending. get_latest_by = [ "-priority" , "order_date" ] 詳しくは latest() のドキュメン ...
https://man.mtool.work/django/6.1/ref/models/options.html
モデルの Meta オプション — Django 6.1 ドキュメント 9683
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデルの Meta オプション ¶ このドキュメントでは、モデル内部の class Meta 内でモデルに与えられる、すべての可能な メタデータオプション を説明します。 ... が存在するアプリケーションの名前とモデルの名前に置き換えられます。 抽象モデルの related name の段落を参照してください。 get_latest_by ¶ Options. get_latest_by ¶ モデル内のフィールド名またはフィールド名のリスト。通常は DateField , DateTimeField , Integer ... Field です。これはモデル Manager の latest() と earliest() メソッドで使用するデフォルトのフィールドを指定します。 実装例: # Latest by ascending order_date. get_lates ... t_by = "order_date" # Latest by priority descending, order_date ascending. get_latest_by = [ "-priority" , "order_date" ] 詳しくは latest() のドキュメン ...
https://man.mtool.work/django/6.1/ref/models/options.html
Django 1.4.17 リリースノート — Django 6.1 ドキュメント 9354
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.4.17 リリースノート ¶ January 2, 2015 Django 1.4.17 fixes a regression in the 1.4.14 security release. Additionally, Django's vendored vers ... ion of six, django.utils.six , has been upgraded to the latest release (1.9.0). バグ修正 ¶ Fixed a regression with dynamically generated inlines and allowed field references in the admi ... リリースノート 関連キーワード regression release リリースノート January fixes security Additionally vendored utils upgraded latest バグ 修正 Fixed dynamically inlines allowed references admin クイック検索 Last update: 2026年10月09日 « previous | up | ne ...
https://man.mtool.work/django/6.1/releases/1.4.17.html
Django 1.6.9 リリースノート — Django 6.1 ドキュメント 9354
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.6.9 リリースノート ¶ January 2, 2015 Django 1.6.9 fixes a regression in the 1.6.6 security release. Additionally, Django's vendored version ... of six, django.utils.six , has been upgraded to the latest release (1.9.0). バグ修正 ¶ Fixed a regression with dynamically generated inlines and allowed field references in the admi ... リリースノート 関連キーワード regression release リリースノート January fixes security Additionally vendored utils upgraded latest バグ 修正 Fixed dynamically inlines allowed references admin クイック検索 Last update: 2026年10月09日 « previous | up | ne ...
https://man.mtool.work/django/6.1/releases/1.6.9.html
Django 1.4.17 リリースノート — Django 6.1 ドキュメント 8874
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.4.17 リリースノート ¶ January 2, 2015 Django 1.4.17 fixes a regression in the 1.4.14 security release. Additionally, Django's vendored vers ... ion of six, django.utils.six , has been upgraded to the latest release (1.9.0). バグ修正 ¶ Fixed a regression with dynamically generated inlines and allowed field references in the admi ... 連キーワード Django regression release six リリースノート January fixes security Additionally vendored django utils upgraded latest バグ 修正 Fixed dynamically inlines allowed 関連するページ Django 1.6.9 リリースノート Django 1.5.12 リリースノート Django ...
https://man.mtool.work/django/6.1/releases/1.4.17.html
Django 1.6.9 リリースノート — Django 6.1 ドキュメント 8874
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.6.9 リリースノート ¶ January 2, 2015 Django 1.6.9 fixes a regression in the 1.6.6 security release. Additionally, Django's vendored version ... of six, django.utils.six , has been upgraded to the latest release (1.9.0). バグ修正 ¶ Fixed a regression with dynamically generated inlines and allowed field references in the admi ... 連キーワード Django regression release six リリースノート January fixes security Additionally vendored django utils upgraded latest バグ 修正 Fixed dynamically inlines allowed 関連するページ Django 1.4.17 リリースノート Django 1.5.12 リリースノート Djang ...
https://man.mtool.work/django/6.1/releases/1.6.9.html
条件付きのビュー処理 — Django 6.1 ドキュメント 8874
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 条件付きのビュー処理 ¶ HTTP クライアントは、さまざまな HTTPヘッダーを送信することで、受信したリソースについてサーバーに伝えることができます。この方法 ... す。そのブログに関連するすべてのエントリーの最新の published 日付が必要です。これを行う一つの方法は次のようなものです。 def latest_entry ( request , blog_id ): return Entry . objects . filter ( blog = blog_id ) . latest ( "published" ) . published この機 ... れていないページを早期に検出できます。 from django.views.decorators.http import condition @condition ( last_modified_func = latest_entry ) def front_page ( request , blog_id ): ... デコレータの順番に注意 条件付きレスポンスが condition() によって返される ... last_modified_func ) last-modified 関数だけを使う先ほどの例も、このデコレータを使って書くことができます。 @last_modified ( latest_entry ) def front_page ( request , blog_id ): ... もしくは、次のように書きます。 def front_page ( request , blog_id ): ... ...
https://man.mtool.work/django/6.1/topics/conditional-view-processing.html
サイトマップ・フレームワーク — Django 6.1 ドキュメント 8709
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » サイトマップ・フレームワーク ¶ Djangoには、 sitemap XML ファイルを作成するための高レベルなサイトマップ生成フレームワークが付属しています。 概要 ¶ サ ... は、 hreflang="x-default" フォールバックエントリーが含まれ、その値は LANGUAGE_CODE になります。デフォルトは False です。 get_latest_lastmod () [ソース] ¶ オプション。 lastmod で返される最新の値を返すメソッド。この関数は、 Sitemap インデックス コンテキスト ... 変数 に lastmod 属性を追加するために使用されます。 デフォルトでは、 get_latest_lastmod() は以下を返します: lastmod が属性の場合: lastmod 。 If lastmod is a method: The latest lastmod returned by callin ... that specifies a date field for objects retrieved from the queryset . This will be used for the lastmod attribute and get_latest_lastmod() methods in the generated sitemap. priority 、 changefreq 、 protocol キーワード引数を使用すると、すべてのURLに対 ...
https://man.mtool.work/django/6.1/ref/contrib/sitemaps.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT