... me to my site." というテキストが翻訳文字列としてマークされています: from django.http import HttpResponse from django.utils.translation import gettext as _ def my_view ( request ): output = _ ( "Welcome to my site." ) return HttpResponse ( output ) 別名を付け ... も同じコードを書くことができます。次の例は、上の例とまったく同一です: from django.http import HttpResponse from django.utils.translation import gettext def my_view ( request ): output = gettext ( "Welcome to my site." ) return HttpResponse ( output ) 翻訳は、 ... fore they reach gettext . This means _(f"Welcome {name}") will not work as expected, as the variable is substituted before translation occurs. Instead, use named-string interpolation: # Good _ ( "Welcome %(name)s " ) % { "name" : name } # Good _ ( "Welcome ... ... me to my site." というテキストが翻訳文字列としてマークされています: from django.http import HttpResponse from django.utils.translation import gettext as _ def my_view ( request ): output = _ ( "Welcome to my site." ) return HttpResponse ( output ) 別名を付け ... も同じコードを書くことができます。次の例は、上の例とまったく同一です: from django.http import HttpResponse from django.utils.translation import gettext def my_view ( request ): output = gettext ( "Welcome to my site." ) return HttpResponse ( output ) 翻訳は、 ... fore they reach gettext . This means _(f"Welcome {name}") will not work as expected, as the variable is substituted before translation occurs. Instead, use named-string interpolation: # Good _ ( "Welcome %(name)s " ) % { "name" : name } # Good _ ( "Welcome ... ... Fixed AssertionError in some complex queries ( #24525 ). Fixed a migrations crash with GenericForeignKey ( #25040 ). Made translation.override() clear the overridden language when a translation isn't initially active ( #25295 ). Fixed crash when using a va ... 次のトピックへ Django 1.8.4 リリースノート 関連キーワード Fixed model queries migrations crash Made AssertionError foreign translation using list reverse values autocommit many リリースノート October fixes several bugs バグ 修正 development server autoreloa ... ... delAdmin の属性) actions_selection_counter (ModelAdmin の属性) activate() (django.utils.timezone モジュール) (django.utils.translation モジュール) acycle_key() (backends.base.SessionBase のメソッド) add template filter add() (cache のメソッド) (GeometryColl ... --database --deploy --fail-level --list-tags --tag -t check() (BaseCommand のメソッド) check_for_language() (django.utils.translation モジュール) check_password() (django.contrib.auth.hashers モジュール) (models.AbstractBaseUser のメソッド) (models.User の ... admin command dbshell コマンドラインオプション -- --database deactivate() (django.utils.timezone モジュール) (django.utils.translation モジュール) deactivate_all() (django.utils.translation モジュール) DEBUG setting debug template tag Debug (django.core.che ... ... Fixed AssertionError in some complex queries ( #24525 ). Fixed a migrations crash with GenericForeignKey ( #25040 ). Made translation.override() clear the overridden language when a translation isn't initially active ( #25295 ). Fixed crash when using a va ... へ Django 1.8.4 リリースノート 関連キーワード Fixed model queries migrations Django field crash Made AssertionError foreign translation using list reverse values autocommit set many リリースノート October 関連するページ Django 1.7.1 リリースノート Django 1.8 ... ... delAdmin の属性) actions_selection_counter (ModelAdmin の属性) activate() (django.utils.timezone モジュール) (django.utils.translation モジュール) acycle_key() (backends.base.SessionBase のメソッド) add template filter add() (cache のメソッド) (GeometryColl ... --database --deploy --fail-level --list-tags --tag -t check() (BaseCommand のメソッド) check_for_language() (django.utils.translation モジュール) check_password() (django.contrib.auth.hashers モジュール) (models.AbstractBaseUser のメソッド) (models.User の ... admin command dbshell コマンドラインオプション -- --database deactivate() (django.utils.timezone モジュール) (django.utils.translation モジュール) deactivate_all() (django.utils.translation モジュール) DEBUG setting debug template tag Debug (django.core.che ... ... st context processor on the admin login page to fix a regression in 1.9 ( #26558 ). Fixed translation of password validators' help_text in forms ( #26544 ). Fixed a regression causing the cached template loader to crash when ... ワード Fixed regression バグ 修正 template crash callbacks リリースノート Removed need request context processor admin login translation password validators help text forms causing cached loader using クイック検索 Last update: 2026年10月09日 « previous | up | ... ... st context processor on the admin login page to fix a regression in 1.9 ( #26558 ). Fixed translation of password validators' help_text in forms ( #26544 ). Fixed a regression causing the cached template loader to crash when ... jango バグ 修正 template crash callbacks リリースノート いくつ Removed need request context processor admin login page fix translation 関連するページ Django 1.11.3 リリースノート Django 5.1.7 リリースノート Django 2.1.4 リリースノート Django 2.0.7 リリースノ ... ... ing. For more information, see the on_delete documentation. Contextual markers and comments for translatable strings ¶ For translation strings with ambiguous meaning, you can now use the pgettext function to specify the context of the string. And if you jus ... ions, you should either insert it using test fixtures , or using the setUp() method of your test case. Changed priority of translation loading ¶ Work has been done to simplify, rationalize and properly document the algorithm used by Django at runtime to bui ... ld translations from the different translations found on disk, namely: For translatable literals found in Python code and templates ( 'dj ... ... ing. For more information, see the on_delete documentation. Contextual markers and comments for translatable strings ¶ For translation strings with ambiguous meaning, you can now use the pgettext function to specify the context of the string. And if you jus ... ions, you should either insert it using test fixtures , or using the setUp() method of your test case. Changed priority of translation loading ¶ Work has been done to simplify, rationalize and properly document the algorithm used by Django at runtime to bui ... ld translations from the different translations found on disk, namely: For translatable literals found in Python code and templates ( 'dj ... 2026年10月08日