per page, with , order by , clip by
Results of 1 - 10 of about 189 for http (0.003 sec.)
クラスベースのジェネリックビュー: フラットインデックス 11971
クラスベースのジェネリックビュー: フラットインデックス この索引は、クラスベースビューのリファレンス文書を、異なる観点から編成したものです。ビューごとに、クラスツリーの有効な属性とメソッドが表されます。動作を定義するクラスの観点から編集された ... スのヒエラルキーがわかりやすく紹介されています。 シンプルなジェネリックビュー View class View 属性 (とオプションのアクセサ): http_method_names メソッド as_view() dispatch() head() http_method_not_allowed() setup() TemplateView class TemplateView 属性 ( ... とオプションのアクセサ): content_type extra_context http_method_names response_class [ render_to_response() ] template_engine template_name [ get_template_names() ] メソッド as_vi ... ew() dispatch() get() get_context_data() head() http_method_not_allowed() render_to_response() setup() RedirectView class RedirectView 属性 (とオプションのアクセサ): http_meth ...
https://man.mtool.work/django/6.1/ref/class-based-views/flattened-index.html
リクエストとレスポンスのオブジェクト 10583
リクエストとレスポンスのオブジェクト 簡単な概要 Django は、システムを通じてステータスを渡すために、リクエストとレスポンスのオブジェクトを使います。 あるページがリクエストされたとき、Django はリクエストに関するメタデータを含んだ HttpRequest ... オブジェクトを生成します。それから Django は HttpRequest をビュー関数の最初の関数として渡し、適切なビューを読み込みます。あらゆるビューは HttpResponse オブジェクトを返す必要 ... があります。 このドキュメントでは、 HttpRequest と HttpResponse オブジェクトの API を説明しています。これは django.http モジュールにて定義されています。 HttpReques ... t オブジェクト class HttpRequest [ソース] 属性 特に記載がない限り、全ての属性は読み取り専用だと考えてください。 HttpRequest. scheme [ソース] リクエス ...
https://man.mtool.work/django/6.1/ref/request-response.html
Django 1.11.22 リリースノート 9183
Django 1.11.22 リリースノート July 1, 2019 Django 1.11.22 fixes a security issue in 1.11.21. CVE-2019-12781: Incorrect HTTP detection with reverse-proxy connecting via HTTPS When deployed behind a reverse-proxy connecting to Django via HTTP ... S, django.http.HttpRequest.scheme would incorrectly detect client requests made via HTTP as using HTTPS. This entails incorrect results f ... or is_secure() , and build_absolute_uri() , and that HTTP requests would not be redirected to HTTPS in accordance with SECURE_SSL_REDIRECT . HttpRequest.scheme now respects SECURE_ ... PROXY_SSL_HEADER , if it is configured, and the appropriate header is set on the request, for both HTTP and HTTPS requests. If you deploy Django behind a reverse-proxy that forwards HTTP requests, and that connects to Django v ...
https://man.mtool.work/django/6.1/releases/1.11.22.html
Django 2.1.10 リリースノート 9183
Django 2.1.10 リリースノート July 1, 2019 Django 2.1.10 fixes a security issue in 2.1.9. CVE-2019-12781: Incorrect HTTP detection with reverse-proxy connecting via HTTPS When deployed behind a reverse-proxy connecting to Django via HTTPS, d ... jango.http.HttpRequest.scheme would incorrectly detect client requests made via HTTP as using HTTPS. This entails incorrect results f ... or is_secure() , and build_absolute_uri() , and that HTTP requests would not be redirected to HTTPS in accordance with SECURE_SSL_REDIRECT . HttpRequest.scheme now respects SECURE_ ... PROXY_SSL_HEADER , if it is configured, and the appropriate header is set on the request, for both HTTP and HTTPS requests. If you deploy Django behind a reverse-proxy that forwards HTTP requests, and that connects to Django v ...
https://man.mtool.work/django/6.1/releases/2.1.10.html
ベース・ビュー 9129
ベース・ビュー 以下の3つのクラスは、Django のビューの作成に必要な多くの機能を提供します。これらは Django ビューの 親の ビューとみなすことができ、それ自体で使うことも継承して使うこともできます。プロジェクトに必要な全ての機能を提供するわけでは ... ジェネリックビューではないので、 django.views からインポートすることもできます。 メソッドのフローチャート setup() dispatch() http_method_not_allowed() options() Example views.py : from django.http import HttpResponse from django.views import View class ... MyView ( View ): def get ( self , request , * args , ** kwargs ): return HttpResponse ( "Hello, World!" ) Example urls.py : from django.urls import path from myapp.views import MyView urlpatterns = [ ... path ( "mine/" , MyView . as_view (), name = "my-view" ), ] 属性 http_method_names このビューが受け入れる HTTP メソッドの名称のリストです。 デフォルト値: [ "get" , "post" , "put" , "patch" , " ...
https://man.mtool.work/django/6.1/ref/class-based-views/base.html
Django 2.2.3 リリースノート 8779
Django 2.2.3 リリースノート July 1, 2019 Django 2.2.3 fixes a security issue and several bugs in 2.2.2. Also, the latest string translations from Transifex are incorporated. CVE-2019-12781: Incorrect HTTP detection with reverse-proxy connec ... ting via HTTPS When deployed behind a reverse-proxy connecting to Django via HTTPS, django.http.HttpRequest.scheme would incorrectly det ... ect client requests made via HTTP as using HTTPS. This entails incorrect results for is_secure() , and build_absolute_uri() , and that HTTP requests would n ... ot be redirected to HTTPS in accordance with SECURE_SSL_REDIRECT . HttpRequest.scheme now respects SECURE_PROXY_SSL_HEADER , if it is configured, a ...
https://man.mtool.work/django/6.1/releases/2.2.3.html
REMOTE_USER で認証する 8495
REMOTE_USER で認証する This document describes how to make use of external authentication sources in your Django applications. This type of authentication solution is typically seen on intranet sites, with single sign-on solutions such as I ... ngo, this value is made available in request.META (as REMOTE_USER when supplied as an environment variable, as in WSGI, or HTTP_REMOTE_USER when supplied via an HTTP header, as in ASGI). Django can be configured to make use of the REMOTE_USER value u ... ckend" , ] With this setup, RemoteUserMiddleware will detect the username in request.META['REMOTE_USER'] (or request.META['HTTP_REMOTE_USER'] under ASGI) and will authenticate and auto-login that user using the RemoteUserBackend . この特定の設定は、デ ... せん。許可したい場合は、 AllowAllUsersRemoteUserBackend を使用してください。 If your authentication mechanism uses a custom HTTP header and not REMOTE_USER , you can subclass RemoteUserMiddleware and set the header attribute to the desired request.MET ...
https://man.mtool.work/django/6.1/howto/auth-remote-user.html
条件付きのビュー処理 8320
条件付きのビュー処理 HTTP クライアントは、さまざまな HTTPヘッダーを送信することで、受信したリソースについてサーバーに伝えることができます。この方法は、ウェブページを ( GET メソッドを利用して) 取得する際に、すでにクライアントが取得しているデ ... ータを送信するのを回避するためによく使われます。しかし、同じヘッダーは、全ての HTTP メソッド ( POST 、 PUT 、 DELETE など) で利用できます。 Django がビューから送り返す各ページ (レスポンス) に対して、Django ... は2種類の HTTP ヘッダ、 ETag ヘッダと Last-Modified ヘッダを提供できます。これらのヘッダは HTTP レスポンス上ではオプションです。ヘッダはビ ... アントに対して、コンテンツが前回のリクエスト以降変更されていないことを伝えます。 これら 2 つの関数は django.views.decorators.http.condition デコレータのパラメータとして渡されます。このデコレータは、HTTP リクエストのヘッダがリソースのヘッダと一致するかど ...
https://man.mtool.work/django/6.1/topics/conditional-view-processing.html
ビューを記述する 8320
ビューを記述する ビュー関数、つまり view は、Web リクエストを受け取って Web レスポンスを返すPython 関数です。 このレスポンスは、WebページのHTMLコンテンツ、リダイレクトや404エラー、またはXMLドキュメントやイメージ、その他何にでもなり得ます (本 ... ァイルにビューを記述します。 シンプルなビュー 以下は、HTML ドキュメントとして、現在の日付と時刻を返すビューです: from django.http import HttpResponse import datetime def current_datetime ( request ): now = datetime . datetime . now () html = '<html lan ... g="en"><body>It is now %s .</body></html>' % now return HttpResponse ( html ) 1 行ずつコードを見ていきましょう: 最初に、Python の datetime ライブラリ とともに、クラス HttpResponse を ... django.http モジュールからインポートします。 次に、 current_datetime という関数を定義します。これがビュー関数です。それぞれのビュー関数 ...
https://man.mtool.work/django/6.1/topics/http/views.html
ビューのデコレータ 7620
ビューのデコレータ Djangoでは、さまざまなHTTP機能をサポートするために、ビューに適用できるいくつかのデコレータが提供されています。 ここで紹介するデコレータをクラスベースのビューで使用する方法については、 クラスをデコレーションする を参照して ... ください。 特定のHTTPメソッドのみ許可する django.views.decorators.http にあるデコレータを使用することで、リクエストメソッドに基づいてビューへのア ... クセスを制限できます。アクセスが制限されるとき、これらのデコレータは django.http.HttpResponseNotAllowed を返します。 require_http_methods ( request_method_list ) [ソース] ビューが特定のリクエストメソッド ... のみを受け付けるようにするデコレータです。以下のように使います。 from django.views.decorators.http import require_http_methods @require_http_methods ([ "GET" , "POST" ]) def my_view ( request ): # I can assume now that on ...
https://man.mtool.work/django/6.1/topics/http/decorators.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT