Results of 1 - 10 of about 76 for Middleware (0.004 sec.)
- ミドルウェア (Middleware) — Django 4.0.6 ドキュメント 12647
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
... x | Modules « previous | up | next » ミドルウェア (Middleware) ¶ ミドルウェアは、Django のリクエスト/レスポンス処 ... を持っています。たとえば、Django には AuthenticationMiddleware というミドルウェアコンポーネントがあります。このミ ... 以下のように関数として書くことができます: def simple_middleware ( get_response ): # One-time configuration and ini ... tialization. def middleware ( request ): # Code to be executed for each reques ...
-
https://man.plustar.jp/django/topics/http/middleware.html
- [similar]
- django.utils.decorators — Django 4.0.6 ドキュメント 12121
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
... me__ return _dec [ドキュメント] def decorator_from_middleware_with_args ( middleware_class ): """ Like decorator ... _from_middleware, but return a function that accepts the arguments ... to be passed to the middleware_class. Use like:: cache_page = decorator_from_midd ... leware_with_args(CacheMiddleware) # ... @cache_page(3600) def my_view(request): # . ...
-
https://man.plustar.jp/django/_modules/django/utils/decorators.html
- [similar]
- ミドルウェア — Django 4.0.6 ドキュメント 11221
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
... | next » ミドルウェア ¶ This document explains all middleware components that come with Django. For information ... on how to use them and how to write your own middleware, see the middleware usage guide . 使用できる middl ... eware ¶ Cache middleware ¶ class UpdateCacheMiddleware ¶ class FetchFromCac ... heMiddleware ¶ サイト全体でキャッシュを有効にします。有効にする ...
-
https://man.plustar.jp/django/ref/middleware.html
- [similar]
- Pythonモジュール索引 — Django 4.0.6 ドキュメント 11137
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
... ms django.contrib.auth.hashers django.contrib.auth.middleware Authentication middleware. django.contrib.auth.pas ... temporary message storage. django.contrib.messages.middleware Message middleware. django.contrib.postgres Postgr ... ement for Django projects. django.contrib.sessions.middleware Session middleware. django.contrib.sitemaps A fram ... e database and Django project django.contrib.sites.middleware Site middleware. django.contrib.staticfiles An app ...
-
https://man.plustar.jp/django/py-modindex.html
- [similar]
- Django's cache framework — Django 4.0.6 ドキュメント 9156
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
... cache your entire site. You'll need to add 'django.middleware.cache.UpdateCacheMiddleware' and 'django.middlewar ... e.cache.FetchFromCacheMiddleware' to your MIDDLEWARE setting, as in this example: M ... IDDLEWARE = [ 'django.middleware.cache.UpdateCacheMiddleware' , 'django.middleware. ... common.CommonMiddleware' , 'django.middleware.cache.FetchFromCacheMiddlewa ...
-
https://man.plustar.jp/django/topics/cache.html
- [similar]
- The flatpages app — Django 4.0.6 ドキュメント 9115
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
... ages.urls' )), ] or: Add 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware' to your MIDDLEWARE set ... ' : '/license/' }, name = 'license' ), ] Using the middleware ¶ The FlatpageFallbackMiddleware can do all of the ... work. class FlatpageFallbackMiddleware ¶ Each time any Django application raises a 404 er ... ror, this middleware checks the flatpages database for the requested UR ...
-
https://man.plustar.jp/django/ref/contrib/flatpages.html
- [similar]
- The redirects app — Django 4.0.6 ドキュメント 8949
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
... TALLED_APPS setting. Add 'django.contrib.redirects.middleware.RedirectFallbackMiddleware' to your MIDDLEWARE set ... old_path and new_path fields. The RedirectFallbackMiddleware does all of the work. Each time any Django applica ... tion raises a 404 error, this middleware checks the redirects database for the requested UR ... ently") redirect. You can subclass RedirectFallbackMiddleware and set response_redirect_class to django.http.Htt ...
-
https://man.plustar.jp/django/ref/contrib/redirects.html
- [similar]
- Django Utils — Django 4.0.6 ドキュメント 8505
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
... f wrong content. For example, internationalization middleware would need to distinguish caches by the Accept-lan ... lready set. cache_timeout is in seconds. The CACHE_MIDDLEWARE_SECONDS setting is used by default. add_never_cach ... lass based views for example usage. decorator_from_middleware ( middleware_class ) [ソース] ¶ Given a middleware ... class, returns a view decorator. This lets you use middleware functionality on a per-view basis. The middleware ...
-
https://man.plustar.jp/django/ref/utils.html
- [similar]
- 索引 — Django 4.0.6 ドキュメント 8145
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
... ntrib.gis.db.models.functions のクラス) async_only_middleware() (django.utils.decorators モジュール) async_to_sy ... (django.contrib.auth.forms のクラス) AuthenticationMiddleware (django.contrib.auth.middleware のクラス) auto_cre ... contrib.postgres.indexes のクラス) BrokenLinkEmailsMiddleware (django.middleware.common のクラス) BtreeGinExtens ... fix (backends.cached_db.SessionStore の属性) CACHE_MIDDLEWARE_ALIAS setting CACHE_MIDDLEWARE_KEY_PREFIX setting ...
-
https://man.plustar.jp/django/genindex.html
- [similar]
- システムチェックフレームワーク — Django 4.0.6 ドキュメント 7937
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
... loy option: security.W001 : You do not have django.middleware.security.SecurityMiddleware in your MIDDLEWARE so ... no effect. security.W002 : You do not have django.middleware.clickjacking.XFrameOptionsMiddleware in your MIDDL ... t-in cross-site request forgery protection via the middleware ( django.middleware.csrf.CsrfViewMiddleware is not ... in your MIDDLEWARE ). Enabling the middleware is the safest approach ...
-
https://man.plustar.jp/django/ref/checks.html
- [similar]