... 定されている場合) でエラーレポートからフィルタリングされる情報を制御するのに役立つ関数デコレータを提供しています。 sensitive_variables() と sensitive_post_parameters() です。 sensitive_variables ( * variables ) [ソース] ¶ コード内の関数(ビューまたは通常のコ ... ールバック)が機密情報を含む可能性のあるローカル変数を使用している場合、 sensitive_variables デコレータを使用することで、それらの変数の値がエラーレポートに含まれないようにすることができます: from django.views.decora ... tors.debug import sensitive_variables @sensitive_variables ( "user" , "pw" , "cc" ) def process_info ( user ): pw = user . pass_word cc = user . credit_card_num ... ... 定されている場合) でエラーレポートからフィルタリングされる情報を制御するのに役立つ関数デコレータを提供しています。 sensitive_variables() と sensitive_post_parameters() です。 sensitive_variables ( * variables ) [ソース] ¶ コード内の関数(ビューまたは通常のコ ... ールバック)が機密情報を含む可能性のあるローカル変数を使用している場合、 sensitive_variables デコレータを使用することで、それらの変数の値がエラーレポートに含まれないようにすることができます: from django.views.decora ... tors.debug import sensitive_variables @sensitive_variables ( "user" , "pw" , "cc" ) def process_info ( user ): pw = user . pass_word cc = user . credit_card_num ... ... this vulnerability, {% debug %} no longer outputs information when the DEBUG setting is False , and it ensures all context variables are correctly escaped when the DEBUG setting is True . CVE-2022-23833: Denial-of-service possibility in file uploads ¶ Pas ... ... this vulnerability, {% debug %} no longer outputs information when the DEBUG setting is False , and it ensures all context variables are correctly escaped when the DEBUG setting is True . CVE-2022-23833: Denial-of-service possibility in file uploads ¶ Pas ... ... urity against cross-site scripting (XSS) vulnerabilities, Django's template system now automatically escapes the output of variables. This behavior is configurable, and allows both variables and larger template constructs to be marked as safe (requiring n ... ... 't have __reduce__() ( #28389 ). Fixed crash in runserver 's autoreload with Python 2 on Windows with non- str environment variables ( #28174 ). Corrected Field.has_changed() to return False for disabled form fields: BooleanField , MultipleChoiceField , M ... ... this vulnerability, {% debug %} no longer outputs information when the DEBUG setting is False , and it ensures all context variables are correctly escaped when the DEBUG setting is True . CVE-2022-23833: Denial-of-service possibility in file uploads ¶ Pas ... ... this vulnerability, {% debug %} no longer outputs information when the DEBUG setting is False , and it ensures all context variables are correctly escaped when the DEBUG setting is True . CVE-2022-23833: Denial-of-service possibility in file uploads ¶ Pas ... ... 、今回のリリースで非推奨となり、Django 5.0 で削除されます。 マイナーな機能 ¶ django.contrib.admin ¶ The admin dark mode CSS variables are now applied in a separate stylesheet and template block. ModelAdmin リストフィルタ providing custom FieldListFilter su ... le, through the new get_latest_lastmod() method. Custom sitemap index templates should be updated for the adjusted context variables . django.contrib.staticfiles ¶ ManifestStaticFilesStorage now replaces paths to CSS source map references with their hashe ... templates of a flat list of URLs is deprecated. Custom sitemap index templates should be updated for the adjusted context variables , expecting a list of objects with location and optional lastmod attributes. CSRF_COOKIE_MASKED transitional setting is de ... ... urity against cross-site scripting (XSS) vulnerabilities, Django's template system now automatically escapes the output of variables. This behavior is configurable, and allows both variables and larger template constructs to be marked as safe (requiring n ... 2026年10月08日