検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 39 for decorators (0.017 sec.)
View decorators — Django 4.0.6 ドキュメント 14660
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ts | Index | Modules « previous | up | next » View decorators ¶ Django provides several decorators that can be a ... ee クラスをデコレーションする for how to use these decorators with class-based views. Allowed HTTP methods ¶ The ... decorators in django.views.decorators.http can be used to res ... access to views based on the request method. These decorators will return a django.http.HttpResponseNotAllowed i ...
https://man.plustar.jp/django/topics/http/decorators.html - [similar]
django.utils.decorators — Django 4.0.6 ドキュメント 12451
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... able of contents | Index | Modules up django.utils.decorators のソースコード "Functions that help with dynamical ... ly creating decorators for views." from functools import partial , update ... wrapper ( _wrapper , dummy ) def _multi_decorate ( decorators , method ): """ Decorate `method` with one or more ... function decorators. `decorators` can be a single decorator or an iter ...
https://man.plustar.jp/django/_modules/django/utils/decorators.html - [similar]
条件付きビュー — Django 4.0.6 ドキュメント 10353
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... tions are passed as parameters to the django.views.decorators.http.condition decorator. This decorator uses the ... rce doesn't exist. The function passed to the etag decorator should return a string representing the ETag for th ... e resource, or None if it doesn't exist. The decorator sets the ETag and Last-Modified headers on the resp ... d page for your front page view: from django.views.decorators.http import condition @condition ( last_modified_f ...
https://man.plustar.jp/django/topics/conditional-view-processing.html - [similar]
Pythonモジュール索引 — Django 4.0.6 ドキュメント 9475
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... to parse strings to datetime objects. django.utils.decorators Functions that help with creating decorators for v ... django.views Django's built-in views. django.views.decorators.cache django.views.decorators.common django.views. ... decorators.csrf django.views.decorators.gzip django.views.decorators.http django.views.dec ...
https://man.plustar.jp/django/py-modindex.html - [similar]
索引 — Django 4.0.6 ドキュメント 9178
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ns のクラス) async_only_middleware() (django.utils.decorators モジュール) async_to_sync() (asgiref.sync モジュー ... C cache template tag cache_control() (django.views.decorators.cache モジュール) cache_key_prefix (backends.cache ... UniqueConstraint の属性) condition() (django.views.decorators.http モジュール) conditional_escape() (django.util ... _COOKIE_SECURE setting csrf_exempt() (django.views.decorators.csrf モジュール) CSRF_FAILURE_VIEW setting CSRF_HE ...
https://man.plustar.jp/django/genindex.html - [similar]
Django's cache framework — Django 4.0.6 ドキュメント 8661
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... , rather than CACHE_MIDDLEWARE_SECONDS . Using the decorators in django.views.decorators.cache you can easily se ... the using other headers section for more on these decorators. If USE_I18N is set to True then the generated cac ... is set to True . The per-view cache ¶ django.views.decorators.cache. cache_page ( timeout , * , cache = None , k ... ching the output of individual views. django.views.decorators.cache defines a cache_page decorator that will aut ...
https://man.plustar.jp/django/topics/cache.html - [similar]
How to manage error reporting — Django 4.0.6 ドキュメント 8536
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... BUG documentation, Django offers a set of function decorators to help you control which information should be fi ... e sensitive_variables decorator: from django.views.decorators.debug import sensitive_variables @sensitive_variab ... les () def my_function (): ... When using multiple decorators If the variable you want to hide is also a functio ... ample), and if the decorated function has multiple decorators, then make sure to place @sensitive_variables at t ...
https://man.plustar.jp/django/howto/error-reporting.html - [similar]
クロスサイトリクエストフォージェリ (CSRF) 対策 — Django 4.0.6 ドキュメント 8254
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... m django.shortcuts import render from django.views.decorators.csrf import csrf_protect @csrf_protect def my_view ... e all other middleware). However, if you use cache decorators on individual views, the CSRF middleware will not ... ken to be inserted you should use the django.views.decorators.csrf.csrf_protect() decorator first: from django.v ... iews.decorators.cache import cache_page from django.views.decorato ...
https://man.plustar.jp/django/ref/csrf.html - [similar]
Django 1.2 リリースノート — Django 4.0.6 ドキュメント 8081
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ) , login_required() , and permission_required() , decorators from django.contrib.auth only apply to functions a ... ired and permission_required ¶ django.contrib.auth.decorators provides the decorators login_required , permissio ... ses_test . Previously it was possible to use these decorators both on functions (where the first argument is 're ... avior has been removed, and if you are using these decorators on methods, you will need to manually apply django ...
https://man.plustar.jp/django/releases/1.2.html - [similar]
クラスベースビュー入門 — Django 4.0.6 ドキュメント 7721
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... をデプロイするURLconfです: from django.contrib.auth.decorators import login_required , permission_required from d ... ば、次のように使用します。 from django.contrib.auth.decorators import login_required from django.utils.decorators ... に使用できます。以下の2つのクラスは同じになります。 decorators = [ never_cache , login_required ] @method_decorat ... or ( decorators , name = 'dispatch' ) class ProtectedView ( Templa ...
https://man.plustar.jp/django/topics/class-based-views/intro.html - [similar]
PREV 1 2 3 4 NEXT