Results of 1 - 10 of about 56 for decorator (0.007 sec.)
- django.utils.decorators — Django 4.0.6 ドキュメント 15338
- " + 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 dynamica ... lly creating decorators for views." from functools import partial , updat ... ce , cls ) def _update_method_wrapper ( _wrapper , decorator ): # _multi_decorate()'s bound_method isn't availa ... s scope. Cheat by # using it on a dummy function. @decorator def dummy ( * args , ** kwargs ): pass update_wrap ...
-
https://man.plustar.jp/django/_modules/django/utils/decorators.html
- [similar]
- View decorators — Django 4.0.6 ドキュメント 11242
- " + 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 ... ee クラスをデコレーションする for how to use these decorators with class-based views. Allowed HTTP methods ¶ Th ... e decorators in django.views.decorators.http can be used to re ... access to views based on the request method. These decorators will return a django.http.HttpResponseNotAllowed ...
-
https://man.plustar.jp/django/topics/http/decorators.html
- [similar]
- Django Utils — Django 4.0.6 ドキュメント 10549
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
... patch the header of response objects directly and decorators that change functions to do that header-patching ... erval format (e.g. 3 days 04:05:06 ). django.utils.decorators ¶ method_decorator ( decorator , name = '' ) [ソー ... ス] ¶ Converts a function decorator into a method decorator. It can be used to decorat ... ame of the method to be decorated and is required. decorator may also be a list or tuple of functions. They are ...
-
https://man.plustar.jp/django/ref/utils.html
- [similar]
- 条件付きビュー — Django 4.0.6 ドキュメント 9960
- " + 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 t ... he resource, or None if it doesn't exist. The decorator sets the ETag and Last-Modified headers on the res ... d page for your front page view: from django.views.decorators.http import condition @condition ( last_modified_ ...
-
https://man.plustar.jp/django/topics/conditional-view-processing.html
- [similar]
- Admin actions — Django 4.0.6 ドキュメント 8693
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
... er, more human-friendly name by using the action() decorator on the make_published function: from django.contri ... option uses a similar technique with the display() decorator to provide human-readable descriptions for callbac ... ango 3.2: The description argument to the action() decorator is equivalent to setting the short_description att ... by wrapping the action function with the action() decorator and passing the permissions argument: @admin . act ...
-
https://man.plustar.jp/django/ref/contrib/admin/actions.html
- [similar]
- How to manage error reporting — Django 4.0.6 ドキュメント 8310
- " + 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 f ... ded in error reports using the sensitive_variables decorator: from django.views.decorators.debug import sensiti ... ot provide any argument to the sensitive_variables decorator: @sensitive_variables () def my_function (): ... W ... hen using multiple decorators If the variable you want to hide is also a functi ...
-
https://man.plustar.jp/django/howto/error-reporting.html
- [similar]
- Django's cache framework — Django 4.0.6 ドキュメント 8310
- " + 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 s ... et a view's expiry time (using the cache_control() decorator) or disable caching for a view (using the never_ca ... che() decorator). See the using other headers section for more on ... these decorators. If USE_I18N is set to True then the generated ca ...
-
https://man.plustar.jp/django/topics/cache.html
- [similar]
- クラスベースビュー入門 — Django 4.0.6 ドキュメント 8310
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
... をデプロイするURLconfです: from django.contrib.auth.decorators import login_required , permission_required from ... メソッドデコレータに変換する必要があります。 method_decorator デコレータを使えば、関数デコレータをメソッドデコレ ... ば、次のように使用します。 from django.contrib.auth.decorators import login_required from django.utils.decorator ... s import method_decorator from django.views.generic import TemplateView clas ...
-
https://man.plustar.jp/django/topics/class-based-views/intro.html
- [similar]
- django.utils.safestring — Django 4.0.6 ドキュメント 8177
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
... kwards compatibility since Django 2.0. def _safety_decorator ( safety_marker , func ): @wraps ( func ) def wrap ... a string is appropriate. If used on a method as a decorator, mark the returned data as safe. Can be called mul ... l__" ): return s if callable ( s ): return _safety_decorator ( mark_safe , s ) return SafeString ( s ) クイック ...
-
https://man.plustar.jp/django/_modules/django/utils/safestring.html
- [similar]
- クロスサイトリクエストフォージェリ (CSRF) 対策 — Django 4.0.6 ドキュメント 8177
- " + 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_vie ... 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. ... views.decorators.cache import cache_page from django.views.decorat ...
-
https://man.plustar.jp/django/ref/csrf.html
- [similar]