... Constants for Content Security Policy django.utils.dateparse Functions to parse strings to datetime objects. django.utils.decorators Functions that help with creating decorators for views. django.utils.encoding A series of helper functions to manage chara ... ezone support. django.utils.translation Internationalization support. v django.views Django's built-in views. django.views.decorators.cache django.views.decorators.common django.views.decorators.csp django.views.decorators.csrf django.views.decorators.gzip ... django.views.decorators.http django.views.decorators.vary django.views.generic.dates django.views.i18n 関連キーワード django contrib Django middle ... ... Constants for Content Security Policy django.utils.dateparse Functions to parse strings to datetime objects. django.utils.decorators Functions that help with creating decorators for views. django.utils.encoding A series of helper functions to manage chara ... ezone support. django.utils.translation Internationalization support. v django.views Django's built-in views. django.views.decorators.cache django.views.decorators.common django.views.decorators.csp django.views.decorators.csrf django.views.decorators.gzip ... django.views.decorators.http django.views.decorators.vary django.views.generic.dates django.views.i18n 関連キーワード contrib middleware utils mod ... ... ラス) async_client (SimpleTestCase の属性) async_client_class (SimpleTestCase の属性) async_only_middleware() (django.utils.decorators モジュール) async_to_sync() (asgiref.sync モジュール) AsyncClient (django.test のクラス) AsyncPage (django.core.paginator ... s.make_template_fragment_key() django.core.management.call_command() django.core.serializers.get_serializer() django.views.decorators.cache.cache_page() bulk_create() (django.db.models.query.QuerySet モジュール) bulk_update() (django.db.models.query.QueryS ... et モジュール) byteorder (WKBWriter の属性) C cache template tag cache_control() (django.views.decorators.cache モジュール) cache_key_prefix (backends.cached_db.SessionStore の属性) CACHE_MIDDLEWARE_ALIAS setting CACHE_MIDDLEWAR ... ... ラス) async_client (SimpleTestCase の属性) async_client_class (SimpleTestCase の属性) async_only_middleware() (django.utils.decorators モジュール) async_to_sync() (asgiref.sync モジュール) AsyncClient (django.test のクラス) AsyncPage (django.core.paginator ... s.make_template_fragment_key() django.core.management.call_command() django.core.serializers.get_serializer() django.views.decorators.cache.cache_page() bulk_create() (django.db.models.query.QuerySet モジュール) bulk_update() (django.db.models.query.QueryS ... et モジュール) byteorder (WKBWriter の属性) C cache template tag cache_control() (django.views.decorators.cache モジュール) cache_key_prefix (backends.cached_db.SessionStore の属性) CACHE_MIDDLEWARE_ALIAS setting CACHE_MIDDLEWAR ... ... ューで使用する方法については、 クラスをデコレーションする を参照してください。 特定のHTTPメソッドのみ許可する ¶ django.views.decorators.http にあるデコレータを使用することで、リクエストメソッドに基づいてビューへのアクセスを制限できます。アクセスが制限されると ... ソース] ¶ ビューが特定のリクエストメソッドのみを受け付けるようにするデコレータです。以下のように使います。 from django.views.decorators.http import require_http_methods @require_http_methods ([ "GET" , "POST" ]) def my_view ( request ): # I can assume now th ... に依存しているため、 require_GET の代わりに require_safe を使用することをお勧めします。 条件付きのビュー処理 ¶ django.views.decorators.http にある以下のデコレータを使って、特定のビューのキャッシュ動作を制御できます。 condition ( etag_func = None , last_modi ... ... ューで使用する方法については、 クラスをデコレーションする を参照してください。 特定のHTTPメソッドのみ許可する ¶ django.views.decorators.http にあるデコレータを使用することで、リクエストメソッドに基づいてビューへのアクセスを制限できます。アクセスが制限されると ... ソース] ¶ ビューが特定のリクエストメソッドのみを受け付けるようにするデコレータです。以下のように使います。 from django.views.decorators.http import require_http_methods @require_http_methods ([ "GET" , "POST" ]) def my_view ( request ): # I can assume now th ... に依存しているため、 require_GET の代わりに require_safe を使用することをお勧めします。 条件付きのビュー処理 ¶ django.views.decorators.http にある以下のデコレータを使って、特定のビューのキャッシュ動作を制御できます。 condition ( etag_func = None , last_modi ... ... e follows the new rules for stateful template tags The user_passes_test() , login_required() , and permission_required() , decorators from django.contrib.auth only apply to functions and no longer work on methods. There's a simple one-line fix detailed bel ... hread safe, this leakage no longer occurs. user_passes_test , login_required and permission_required ¶ django.contrib.auth.decorators provides the decorators login_required , permission_required and user_passes_test . Previously it was possible to use thes ... e decorators both on functions (where the first argument is 'request') and on methods (where the first argument is 'self', and the seco ... ... e follows the new rules for stateful template tags The user_passes_test() , login_required() , and permission_required() , decorators from django.contrib.auth only apply to functions and no longer work on methods. There's a simple one-line fix detailed bel ... hread safe, this leakage no longer occurs. user_passes_test , login_required and permission_required ¶ django.contrib.auth.decorators provides the decorators login_required , permission_required and user_passes_test . Previously it was possible to use thes ... e decorators both on functions (where the first argument is 'request') and on methods (where the first argument is 'self', and the seco ... ... custom template filters that use decorators ( #29400 ). Fixed detection of custom URL converters in included patterns ( #29415 ). Fixed a regression that added an unn ... .0.5 リリースノート 関連キーワード Fixed regression バグ 修正 custom using write リリースノート 1日 broke template filters decorators detection converters included patterns added unnecessary subquery clause MySQL RawSQL annotation WKBWriter クイック検索 La ... ... Cache backend ( #33361 ). Relaxed the check added in Django 4.0 to reallow use of a duck-typed HttpRequest in django.views.decorators.cache.cache_control() and never_cache() decorators ( #33350 ). Fixed a regression in Django 4.0 that caused creating bogus ... d caused cache 問題 medium バグ values user order long 潜在的 resolution logic Storage save ディレクトリトラバーサル crash decorators クイック検索 Last update: 2026年10月09日 « previous | up | next » ... 2026年10月08日