... om (ModelAdmin の属性) actions_on_top (ModelAdmin の属性) actions_selection_counter (ModelAdmin の属性) activate() (django.utils.timezone モジュール) (django.utils.translation モジュール) acycle_key() (backends.base.SessionBase のメソッド) add templat ... ements() (SyndicationFeed のメソッド) add_message() (django.contrib.messages モジュール) add_never_cache_headers() (django.utils.cache モジュール) add_post_render_callback() (SimpleTemplateResponse のメソッド) add_root_elements() (SyndicationFeed のメ ... ySet モジュール) (Model のメソッド) adelete_test_cookie() (backends.base.SessionBase のメソッド) AdminEmailHandler (django.utils.log のクラス) AdminPasswordChangeForm (django.contrib.auth.forms のクラス) ADMINS setting AdminSite (django.contrib.admin ... ... or double-dot variable lookup, like {{ book..title }} , is removed. The default value of the algorithm argument for django.utils.crypto.salted_hmac() and django.core.signing.base64_hmac() will change from "sha1" to "sha256" . Calling QuerySet.select_r ... e changes. The ModelAdmin.log_deletion() and LogEntryManager.log_action() methods will be removed. The undocumented django.utils.itercompat.is_iterable() function and the django.utils.itercompat module will be removed. The django.contrib.gis.geoip2.Ge ... ては、 Django 4.0 リリースノート を参照してください。 SERIALIZE テスト設定が削除されます。 ドキュメント化されていない django.utils.baseconv モジュールは削除されます。 ドキュメント化されていない django.utils.datetime_safe モジュールは削除されます。 USE_T ... ... bjects. django.contrib.gis.serializers.geojson Serialization of GeoDjango models in the GeoJSON format. django.contrib.gis.utils GeoDjango's collection of utilities. django.contrib.gis.utils.layermapping Spatial data import utility for GeoDjango model ... s. django.contrib.gis.utils.ogrinspect Utilities for inspecting OGR data sources. django.contrib.humanize A set of Django template filters useful for ... responses. django.test Testing tools for Django applications. django.test.signals Signals sent during testing. django.test.utils Helpers to write custom test runners. u django.urls django.urls.conf Functions for use in URLconfs. django.utils Django's ... ... to specific form fields from anywhere without having to worry about the details such as creating instances of django.forms.utils.ErrorList or dealing with Form.cleaned_data . This new API replaces manipulating Form._errors which now becomes a private ... re Django 1.7 those metadata were discarded as soon as the errors were added to Form.errors . Form.errors and django.forms.utils.ErrorList now store the ValidationError instances so these metadata can be retrieved at any time through the new Form.erro ... he various error containers were necessary in order to support the features above, specifically Form.errors , django.forms.utils.ErrorList , and the internal storages of ValidationError . These containers which used to store error strings now store Va ... ... する内容のみが 安定版として提供され、また後方互換性を維持しています。 django.utils.cache このモジュールには、HTTPキャッシュの制御を補助するための関数が含まれています。これは、レスポンスの Vary ヘッダーを管 ... 合、Varyヘッダーとキャッシュキー生成に使用するヘッダーのリストを取得するために、レスポンスを構築する必要があります。 django.utils.dateparse このモジュールで定義された関数は、以下の特性を共有しています: ISO 8601 日付/時刻形式の文字列(またはそれに近い代 ... y cannot be represented by timedelta . Changed in Django 6.1: ISO 8601 duration parsing now supports weeks ( PnW ). django.utils.decorators method_decorator ( decorator , name = '' ) [ソース] 関数デコレータをメソッドデコレータに変換します。これは、メソ ... ... で、アプリの Python 2 との後方互換性が失われると考えられます。そのため、これらの API はこの時点で削除されます。 django.test.utils.str_prefix() - Strings don't have 'u' prefixes in Python 3. django.test.utils.patch_logger() - Use unittest.TestCase.asser ... tLogs() instead. django.utils.lru_cache.lru_cache() - Alias of functools.lru_cache() . django.utils.decorators.available_attrs() - This function returns ... functools.WRAPPER_ASSIGNMENTS . django.utils.decorators.ContextDecorator - Alias of contextlib.ContextDecorator . django.utils._os.abspathu() - Alias of os.path.abspat ... ... t. CVE-2019-14233: Denial-of-service possibility in strip_tags() Due to the behavior of the underlying HTMLParser , django.utils.html.strip_tags() would be extremely slow to evaluate certain inputs containing large sequences of nested incomplete HTML ... ) being HTML safe. So NEVER mark safe the result of a strip_tags() call without escaping it first, for example with django.utils.html.escape() . CVE-2019-14234: SQL injection possibility in key and index lookups for JSONField / HStoreField Key and ind ... dictionary expansion, as the **kwargs passed to QuerySet.filter() . CVE-2019-14235: Potential memory exhaustion in django.utils.encoding.uri_to_iri() If passed certain inputs, django.utils.encoding.uri_to_iri() could lead to significant memory usage ... ... t. CVE-2019-14233: Denial-of-service possibility in strip_tags() Due to the behavior of the underlying HTMLParser , django.utils.html.strip_tags() would be extremely slow to evaluate certain inputs containing large sequences of nested incomplete HTML ... ) being HTML safe. So NEVER mark safe the result of a strip_tags() call without escaping it first, for example with django.utils.html.escape() . CVE-2019-14234: SQL injection possibility in key and index lookups for JSONField / HStoreField Key and ind ... dictionary expansion, as the **kwargs passed to QuerySet.filter() . CVE-2019-14235: Potential memory exhaustion in django.utils.encoding.uri_to_iri() If passed certain inputs, django.utils.encoding.uri_to_iri() could lead to significant memory usage ... ... "Welcome 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 ( outpu ... ートにおける翻訳者のためのコメント を参照してください。 no-op (何もしない) として文字列をマークする Use the function django.utils.translation.gettext_noop() to mark a string as a translation string without translating it. The string is later translated ... ... 送ります。 デフォルトのロギング定義 Django のデフォルトのロギング設定は、Python のデフォルトを継承しています。これは django.utils.log.DEFAULT_LOGGING として利用可能で、 django/utils/log.py で定義されています。 { "version" : 1 , "disable_existing_logger ... s" : False , "filters" : { "require_debug_false" : { "()" : "django.utils.log.RequireDebugFalse" , }, "require_debug_true" : { "()" : "django.utils.log.RequireDebugTrue" , }, }, "formatters" : { " ... django.server" : { "()" : "django.utils.log.ServerFormatter" , "format" : "[ {server_time} ] {message} " , "style" : "{" , } }, "handlers" : { "console" : { "leve ... 2026年10月08日