... not_allowed() render_to_response() setup() リストビュー ¶ ListView ¶ class ListView ¶ 属性 (とオプションのアクセサ): allow_empty [ get_allow_empty() ] content_type context_object_name [ get_context_object_name() ] extra_context http_method_names model ... o_response() setup() 日付ベースのビュー ¶ ArchiveIndexView ¶ class ArchiveIndexView ¶ 属性 (とオプションのアクセサ): allow_empty [ get_allow_empty() ] allow_future [ get_allow_future() ] content_type context_object_name [ get_context_object_name() ] d ... ate_queryset() render_to_response() setup() YearArchiveView ¶ class YearArchiveView ¶ 属性 (とオプションのアクセサ): allow_empty [ get_allow_empty() ] allow_future [ get_allow_future() ] content_type context_object_name [ get_context_object_name() ] d ... ... 値を渡した場合、 clean() は ValidationError を発生させる代わりに、 正規化された 空の値を返します。 CharField の場合、これは empty_value を返し、デフォルトでは空の文字列となります。他の Field クラスでは、 None になることもあります。(これはフィールドによ ... r-casing the first letter. Specify a string for label if that default behavior doesn't result in an adequate label. Use an empty string ( "" ) to hide the label. 以下は、2 つのフィールドに対して label を実装する Form の完全な例です。出力を簡略化するた ... ことを忘れないでください。 CharField ¶ class CharField ( ** kwargs ) [ソース] ¶ デフォルトのウィジェット: TextInput 空の値: empty_value として与えたもの 正規化後の値: 文字列になります。 max_length と min_length が与えられた場合は、 MaxLengthValidator と ... ... 値を渡した場合、 clean() は ValidationError を発生させる代わりに、 正規化された 空の値を返します。 CharField の場合、これは empty_value を返し、デフォルトでは空の文字列となります。他の Field クラスでは、 None になることもあります。(これはフィールドによ ... r-casing the first letter. Specify a string for label if that default behavior doesn't result in an adequate label. Use an empty string ( "" ) to hide the label. 以下は、2 つのフィールドに対して label を実装する Form の完全な例です。出力を簡略化するた ... ことを忘れないでください。 CharField ¶ class CharField ( ** kwargs ) [ソース] ¶ デフォルトのウィジェット: TextInput 空の値: empty_value として与えたもの 正規化後の値: 文字列になります。 max_length と min_length が与えられた場合は、 MaxLengthValidator と ... ... not_allowed() render_to_response() setup() リストビュー ¶ ListView ¶ class ListView ¶ 属性 (とオプションのアクセサ): allow_empty [ get_allow_empty() ] content_type context_object_name [ get_context_object_name() ] extra_context http_method_names model ... o_response() setup() 日付ベースのビュー ¶ ArchiveIndexView ¶ class ArchiveIndexView ¶ 属性 (とオプションのアクセサ): allow_empty [ get_allow_empty() ] allow_future [ get_allow_future() ] content_type context_object_name [ get_context_object_name() ] d ... ate_queryset() render_to_response() setup() YearArchiveView ¶ class YearArchiveView ¶ 属性 (とオプションのアクセサ): allow_empty [ get_allow_empty() ] allow_future [ get_allow_future() ] content_type context_object_name [ get_context_object_name() ] d ... ... 返します。 get_next_year ( date ) [ソース] ¶ 指定した日付の翌年の最初の日を含む日付オブジェクトを返します。この関数は allow_empty と allow_future の値によって None を返したり、 Http404 例外を発生させたりします。 get_previous_year ( date ) [ソース] ¶ 指 ... 定した日付の前の年の最初の日を含む日付オブジェクトを返します。この関数は allow_empty と allow_future の値によって None を返したり、 Http404 例外を発生させたりします。 MonthMixin ¶ class MonthMixin [ソース] ¶ ... 4 を返します。 get_next_month ( date ) [ソース] ¶ 指定した日付の翌月初日を含む日付オブジェクトを返します。この関数は allow_empty と allow_future の値によって None を返したり、 Http404 例外が発生したりします。 get_previous_month ( date ) [ソース] ¶ 指定 ... ... 返します。 get_next_year ( date ) [ソース] ¶ 指定した日付の翌年の最初の日を含む日付オブジェクトを返します。この関数は allow_empty と allow_future の値によって None を返したり、 Http404 例外を発生させたりします。 get_previous_year ( date ) [ソース] ¶ 指 ... 定した日付の前の年の最初の日を含む日付オブジェクトを返します。この関数は allow_empty と allow_future の値によって None を返したり、 Http404 例外を発生させたりします。 MonthMixin ¶ class MonthMixin [ソース] ¶ ... 4 を返します。 get_next_month ( date ) [ソース] ¶ 指定した日付の翌月初日を含む日付オブジェクトを返します。この関数は allow_empty と allow_future の値によって None を返したり、 Http404 例外が発生したりします。 get_previous_month ( date ) [ソース] ¶ 指定 ... ... ckend ¶ A change to session.flush() in the cached_db session backend in Django 1.8 mistakenly sets the session key to an empty string rather than None . An empty string is treated as a valid session key and the session cookie is set accordingly. Any ... users with an empty string in their session cookie will use the same session store. session.flush() is called by django.contrib.auth.logout() ... d (and its session key becomes '' ) the account details are set on the session and the session is saved. Any users with an empty string in their session cookie will now be logged into that account. バグ修正 ¶ Fixed check for template engine alias uniq ... ... ckend ¶ A change to session.flush() in the cached_db session backend in Django 1.8 mistakenly sets the session key to an empty string rather than None . An empty string is treated as a valid session key and the session cookie is set accordingly. Any ... users with an empty string in their session cookie will use the same session store. session.flush() is called by django.contrib.auth.logout() ... d (and its session key becomes '' ) the account details are set on the session and the session is saved. Any users with an empty string in their session cookie will now be logged into that account. バグ修正 ¶ Fixed check for template engine alias uniq ... ... t に従って利用可能なオブジェクトを持つ全ての月を含みます。 year : 与えられた年を表す date オブジェクト。 next_year : allow_empty と allow_future に従って、次の年の最初の日を表す date オブジェクト。 previous_year : date オブジェクト。 allow_empty と al ... を、 datetime.datetime オブジェクトとして昇順で表します。 month : 与えられた月を表す date オブジェクト。 next_month : allow_empty と allow_future に従って、次の月の最初の日を表す date オブジェクト。 previous_month : allow_empty と allow_future に従って ... に加えて、テンプレートのコンテキストも提供されます: week : 指定した週の最初の日を表す date オブジェクト。 next_week : allow_empty と allow_future に従って、次の週の最初の日を表す date オブジェクト。 previous_week : allow_empty と allow_future に従って、 ... ... t に従って利用可能なオブジェクトを持つ全ての月を含みます。 year : 与えられた年を表す date オブジェクト。 next_year : allow_empty と allow_future に従って、次の年の最初の日を表す date オブジェクト。 previous_year : date オブジェクト。 allow_empty と al ... を、 datetime.datetime オブジェクトとして昇順で表します。 month : 与えられた月を表す date オブジェクト。 next_month : allow_empty と allow_future に従って、次の月の最初の日を表す date オブジェクト。 previous_month : allow_empty と allow_future に従って ... に加えて、テンプレートのコンテキストも提供されます: week : 指定した週の最初の日を表す date オブジェクト。 next_week : allow_empty と allow_future に従って、次の週の最初の日を表す date オブジェクト。 previous_week : allow_empty と allow_future に従って、 ... 2026年10月08日