per page, with , order by , clip by
Results of 1 - 10 of about 36 for decorators (0.005 sec.)
Pythonモジュール索引 13059
Pythonモジュール索引 a | c | d | f | h | m | s | t | u | v a django.apps c django.conf django.conf.urls django.conf.urls.i18n django.contrib django.contrib.admin Django's admin site. django.contrib.admindocs Django's admin documentation gen ... 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 ...
https://man.mtool.work/django/6.1/py-modindex.html
索引 12679
索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ア | イ | ク | コ | シ | ス | テ | ハ | ヒ | フ | メ | モ | ロ | 具 | 国 | 環 | 翻 | 表 | 言 | 長 記号 -- dbshell コマン ... ラス) 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 ...
https://man.mtool.work/django/6.1/genindex.html
ビューのデコレータ 11585
ビューのデコレータ Djangoでは、さまざまなHTTP機能をサポートするために、ビューに適用できるいくつかのデコレータが提供されています。 ここで紹介するデコレータをクラスベースのビューで使用する方法については、 クラスをデコレーションする を参照して ... ください。 特定の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 ...
https://man.mtool.work/django/6.1/topics/http/decorators.html
Django 1.2 リリースノート 9398
Django 1.2 リリースノート 2010 年 5 月 17 日 Django 1.2 へようこそ! Nearly a year in the making, Django 1.2 packs an impressive list of new features and lots of bug fixes. These release notes cover the new features, as well as important cha ... 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 ... thread 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 ...
https://man.mtool.work/django/6.1/releases/1.2.html
Django のキャッシュフレームワーク 9144
Django のキャッシュフレームワーク 動的なウェブサイトの基本的なトレードオフは、ええと、それが動的であるということです。ユーザーがページをリクエストするたびに、ウェブサーバーはあらゆる種類の計算を行い (データベースのクエリから、テンプレートの ... ax-age セクションがある場合) は、 CACHE_MIDDLEWARE_SECONDS ではなく、有効期限までページがキャッシュされます。 django.views.decorators.cache のデコレータを使用すると、ビューの有効期限を簡単に設定 ( cache_control() デコレータを使用) したり、ビューのキャッシュ ... Z が True に設定されている場合、キャッシュキーには カレントタイムゾーン も含まれます。 ビューごとのキャッシュ django.views.decorators.cache. cache_page ( timeout , * , cache = None , key_prefix = None ) キャッシュフレームワークをより細かい単位で使用するには ... 、個別のビューの出力をキャッシュする方法があります。 django.views.decorators.cache は cache_page デコレーターを定義しており、これを使うとビューのレスポンスが自動的にキャッシュされるようになります。 f ...
https://man.mtool.work/django/6.1/topics/cache.html
Django 4.0.1 リリースノート 8653
Django 4.0.1 リリースノート 2022年1月4日 Django 4.0.1 では、 4.0 におけるセキュリティの問題のうち深刻度 "medium" 1件、深刻度 "low" 2件を含め、いくつかのバグを修正しました。 CVE-2021-45115: UserAttributeSimilarityValidator におけるサービス拒 ... 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 ...
https://man.mtool.work/django/6.1/releases/4.0.1.html
クリックジャッキング対策 8542
クリックジャッキング対策 クリックジャッキングミドルウェアとデコレータは、 clickjacking 攻撃に対する防御を簡単に使える形で提供します。このタイプの攻撃は、悪意のあるサイトがユーザをだまし、隠された frame や iframe にロードした別サイトの要素を ... ヘッダを設定しないよう、ビューデコレータでミドルウェアに指示できます: from django.http import HttpResponse from django.views.decorators.clickjacking import xframe_options_exempt @xframe_options_exempt def ok_to_load_in_a_frame ( request ): return HttpRespons ... ごとに設定するために、Django は次のようなデコレータを提供しています: from django.http import HttpResponse from django.views.decorators.clickjacking import xframe_options_deny from django.views.decorators.clickjacking import xframe_options_sameorigin @xframe ...
https://man.mtool.work/django/6.1/ref/clickjacking.html
クラスベースビュー入門 8542
クラスベースビュー入門 クラスベースビューはビューを実装するもう一つの手段で、関数の代わりに Python のオブジェクトとしてビューを定義します。クラスベースビューは関数ベースのビューを完全に置き換えるものではありませんが、関数ベースのビューと比較 ... ッドの結果をデコレートします。これが最も簡単にできる場所は、ビューをデプロイする URLconf の中です。 from django.contrib.auth.decorators import login_required , permission_required from django.views.generic import TemplateView from .views import VoteView urlp ... し、インスタンスのメソッドのデコレーションに使えるようにできます。たとえば、次のように使用します。 from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from django.views.generic import TemplateView c ... ストまたはタプルを定義して、これを method_decorator() を複数回呼ぶ代わりに使用できます。以下の2つのクラスは同じになります。 decorators = [ never_cache , login_required ] @method_decorator ( decorators , name = "dispatch" ) class ProtectedView ( TemplateView ...
https://man.mtool.work/django/6.1/topics/class-based-views/intro.html
Django 0.96 リリースノート 8415
Django 0.96 リリースノート Django 0.96 へようこそ! The primary goal for 0.96 is a cleanup and stabilization of the features introduced in 0.95. There have been a few small backwards-incompatible changes since 0.95, but the upgrade process s ... mport myview urlpatterns = patterns ( "" , ( "^myview/$" , myview )) One useful application of this can be seen when using decorators; this change allows you to apply decorators to views in your URLconf . Thus, you can make a generic view require login ver ... y easily: from django.conf.urls.defaults import * from django.contrib.auth.decorators import login_required from django.views.generic.list_detail import object_list from mysite.myapp.models import MyModel inf ...
https://man.mtool.work/django/6.1/releases/0.96.html
条件付きのビュー処理 8415
条件付きのビュー処理 HTTP クライアントは、さまざまな HTTPヘッダーを送信することで、受信したリソースについてサーバーに伝えることができます。この方法は、ウェブページを ( GET メソッドを利用して) 取得する際に、すでにクライアントが取得しているデ ... ば、クライアントに対して、コンテンツが前回のリクエスト以降変更されていないことを伝えます。 これら 2 つの関数は django.views.decorators.http.condition デコレータのパラメータとして渡されます。このデコレータは、HTTP リクエストのヘッダがリソースのヘッダと一致す ... lished" ) . published この機能を使えば、トップページビューで変更されていないページを早期に検出できます。 from django.views.decorators.http import condition @condition ( last_modified_func = latest_entry ) def front_page ( request , blog_id ): ... デコレータ ... 算するのが簡単な場合もあり、 Django は ETag だけ、あるいは last-modified だけを計算するデコレータを提供します。 django.views.decorators.http.etag と django.views.decorators.http.last_modified デコレータは condition デコレータと同じ型の関数を渡されます。これら ...
https://man.mtool.work/django/6.1/topics/conditional-view-processing.html
PREV 1 2 3 4 NEXT