... lower , str ) その後、次のようにします: lazy_string = to_lower_lazy ( _ ( "My STRING!" )) 言語のローカライズされた名前 get_language_info ( lang_code ) [ソース] get_language_info() 関数は、言語について詳細な情報を提供します: >>> from django.utils.translat ... ion import activate , get_language_info >>> activate ( "fr" ) >>> li = get_language_info ( "de" ) >>> print ( li [ "name" ], li [ "name_local" ], li [ "name_ ... an Deutsch Allemand False The name , name_local , and name_translated attributes of the dictionary contain the name of the language in English, in the language itself, and in your current active language respectively. The bidi attribute is True only for ... ... get_session_cookie_age() method allows dynamically specifying the session cookie age. django.contrib.syndication Added the language class attribute to the django.contrib.syndication.views.Feed to customize a feed language. The default value is get_langua ... ge() instead of LANGUAGE_CODE . キャッシュ add_never_cache_headers() and never_cache() now add the private directive to Cache-Control headers. ファ ... order by setting the ordering_widget attribute or overriding get_ordering_widget . 国際化 (internationalization) Added the LANGUAGE_COOKIE_HTTPONLY , LANGUAGE_COOKIE_SAMESITE , and LANGUAGE_COOKIE_SECURE settings to set the HttpOnly , SameSite , and Secu ... ... ty "high" according to the Django security policy . CVE-2026-15337: Potential denial-of-service vulnerability in check_for_language() check_for_language() was subject to a potential denial-of-service attack when checking many distinct, very long language ... codes. Each code was used as a key in an in-memory cache, consuming process memory. The language value reaches this function through the django.views.i18n.set_language() view (not active by default) from POST data. Sinc ... gured to store a maximum number of entries, the memory that could be consumed was bounded. To mitigate this vulnerability, language codes longer than 500 characters are now rejected before the cached lookup. This issue has severity "low" according to the ... ... ty "high" according to the Django security policy . CVE-2026-15337: Potential denial-of-service vulnerability in check_for_language() check_for_language() was subject to a potential denial-of-service attack when checking many distinct, very long language ... codes. Each code was used as a key in an in-memory cache, consuming process memory. The language value reaches this function through the django.views.i18n.set_language() view (not active by default) from POST data. Sinc ... gured to store a maximum number of entries, the memory that could be consumed was bounded. To mitigate this vulnerability, language codes longer than 500 characters are now rejected before the cached lookup. This issue has severity "low" according to the ... ... ervice vector via excessive memory usage if large header values are sent. In order to avoid this vulnerability, the Accept-Language header is now parsed up to a maximum length. ... ... ervice vector via excessive memory usage if large header values are sent. In order to avoid this vulnerability, the Accept-Language header is now parsed up to a maximum length. ... ... data loss issue in 4.0. CVE-2026-77050: Potential denial-of-service vulnerability in get_supported_language_variant() get_supported_language_variant() was subject to a potential denial-of-service attack when processing many distin ... ct, very long language codes. Language codes were used as keys in an in-memory cache before their length was limited, potentially consuming exces ... sive process memory. To mitigate this vulnerability, language codes longer than 500 characters are now rejected or truncated before the cached lookup. This issue has severity "low" acc ... ... a loss issue in 4.0. CVE-2026-77050: Potential denial-of-service vulnerability in get_supported_language_variant() get_supported_language_variant() was subject to a potential denial-of-service attack when processing many distin ... ct, very long language codes. Language codes were used as keys in an in-memory cache before their length was limited, potentially consuming exces ... sive process memory. To mitigate this vulnerability, language codes longer than 500 characters are now rejected or truncated before the cached lookup. This issue has severity "low" acc ... ... グ修正 Fixed a regression in Django 2.2.12 that affected translation loading for apps providing translations for territorial language variants as well as a generic language, where the project has different plural equations for the language ( #31570 ). Trac ... ... pt-Language headers are cached in order to avoid repetitive parsing. This leads to a potential denial-of-service vector via excessive ... memory usage if large header values are sent. In order to avoid this vulnerability, the Accept-Language header is now parsed up to a maximum length. バグ修正 Django 4.1 において、ソートの式を含む UniqueConstraint を持つモデルの ... 2026年10月08日