per page, with , order by , clip by
Results of 1 - 10 of about 212 for response (0.005 sec.)
ミドルウェア (Middleware) — Django 6.1 ドキュメント 10664
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ミドルウェア (Middleware) ¶ ミドルウェアは、Django のリクエスト/レスポンス処理にフックを加えるためのフレームワークです。これは、Django の入力あるいは ... にドキュメントされているので参照してください。 自分でミドルウェアを書く ¶ ミドルウェアファクトリは、ミドルウェアを返す get_response を取る呼び出し可能なオブジェクトです。ミドルウェアは (ビューと同じように) リクエストを受け取ってレスポンスを返す呼び出し可 ... 能なオブジェクトです。 ミドルウェアは、以下のように関数として書くことができます: def simple_middleware ( get_response ): # One-time configuration and initialization. def middleware ( request ): # Code to be executed for each request before ... # the view (and later middleware) are called. response = get_response ( request ) # Code to be executed for each request/response after # the view is called. return response ret ...
https://man.mtool.work/django/6.1/topics/http/middleware.html
ミドルウェア (Middleware) — Django 6.1 ドキュメント 10664
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ミドルウェア (Middleware) ¶ ミドルウェアは、Django のリクエスト/レスポンス処理にフックを加えるためのフレームワークです。これは、Django の入力あるいは ... にドキュメントされているので参照してください。 自分でミドルウェアを書く ¶ ミドルウェアファクトリは、ミドルウェアを返す get_response を取る呼び出し可能なオブジェクトです。ミドルウェアは (ビューと同じように) リクエストを受け取ってレスポンスを返す呼び出し可 ... 能なオブジェクトです。 ミドルウェアは、以下のように関数として書くことができます: def simple_middleware ( get_response ): # One-time configuration and initialization. def middleware ( request ): # Code to be executed for each request before ... # the view (and later middleware) are called. response = get_response ( request ) # Code to be executed for each request/response after # the view is called. return response ret ...
https://man.mtool.work/django/6.1/topics/http/middleware.html
クラスベースのジェネリックビュー: フラットインデックス — Django 6.1 ドキュメン... 10400
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クラスベースのジェネリックビュー: フラットインデックス ¶ この索引は、クラスベースビューのリファレンス文書を、異なる観点から編成したものです。ビューご ... () setup() TemplateView ¶ class TemplateView ¶ 属性 (とオプションのアクセサ): content_type extra_context http_method_names response_class [ render_to_response() ] template_engine template_name [ get_template_names() ] メソッド as_view() dispatch() get() ... get_context_data() head() http_method_not_allowed() render_to_response() setup() RedirectView ¶ class RedirectView ¶ 属性 (とオプションのアクセサ): http_method_names pattern_name permanent quer ... t_context_object_name() ] extra_context http_method_names model pk_url_kwarg query_pk_and_slug queryset [ get_queryset() ] response_class [ render_to_response() ] slug_field [ get_slug_field() ] slug_url_kwarg template_engine template_name [ get_template ...
https://man.mtool.work/django/6.1/ref/class-based-views/flattened-index.html
クラスベースのジェネリックビュー: フラットインデックス — Django 6.1 ドキュメン... 10358
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クラスベースのジェネリックビュー: フラットインデックス ¶ この索引は、クラスベースビューのリファレンス文書を、異なる観点から編成したものです。ビューご ... () setup() TemplateView ¶ class TemplateView ¶ 属性 (とオプションのアクセサ): content_type extra_context http_method_names response_class [ render_to_response() ] template_engine template_name [ get_template_names() ] メソッド as_view() dispatch() get() ... get_context_data() head() http_method_not_allowed() render_to_response() setup() RedirectView ¶ class RedirectView ¶ 属性 (とオプションのアクセサ): http_method_names pattern_name permanent quer ... t_context_object_name() ] extra_context http_method_names model pk_url_kwarg query_pk_and_slug queryset [ get_queryset() ] response_class [ render_to_response() ] slug_field [ get_slug_field() ] slug_url_kwarg template_engine template_name [ get_template ...
https://man.mtool.work/django/6.1/ref/class-based-views/flattened-index.html
テストツール — Django 6.1 ドキュメント 9376
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テストツール ¶ Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecos ... ient からインスタンスを作り、次のようにウェブページを取得します。 >>> from django.test import Client >>> c = Client () >>> response = c . post ( "/login/" , { "username" : "john" , "password" : "smith" }) >>> response . status_code 200 >>> response = c . ... get ( "/customer/details/" ) >>> response . content b'<!DOCTYPE html...' この例が示唆しているように、 Client のインスタンスは、Python のインタラクティブなインタプリ ... = False , * , headers = None , query_params = None , ** extra ) [ソース] ¶ 与えられた path に対して GET リクエストを作り、 Response オブジェクトを返します。 Response オブジェクトについては、下のセクションにドキュメントされています。 query_params に渡され ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
テストツール — Django 6.1 ドキュメント 9334
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テストツール ¶ Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecos ... ient からインスタンスを作り、次のようにウェブページを取得します。 >>> from django.test import Client >>> c = Client () >>> response = c . post ( "/login/" , { "username" : "john" , "password" : "smith" }) >>> response . status_code 200 >>> response = c . ... get ( "/customer/details/" ) >>> response . content b'<!DOCTYPE html...' この例が示唆しているように、 Client のインスタンスは、Python のインタラクティブなインタプリ ... = False , * , headers = None , query_params = None , ** extra ) [ソース] ¶ 与えられた path に対して GET リクエストを作り、 Response オブジェクトを返します。 Response オブジェクトについては、下のセクションにドキュメントされています。 query_params に渡され ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
シンプルなミックスイン (mixin) — Django 6.1 ドキュメント 7803
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » シンプルなミックスイン (mixin) ¶ ContextMixin ¶ class django.views.generic.base. ContextMixin ¶ 属性 extra_context ¶ コンテキストに含める辞書。これは ... てください。より詳しい情報については、 テンプレートコンテキストのレンダリング に関するドキュメントを読んでください。 TemplateResponseMixin ¶ class django.views.generic.base. TemplateResponseMixin ¶ 適切なコンテキストを指定して TemplateResponse を構築するメ ... 例外が発生します。 template_engine ¶ テンプレートを読み込む際に使用するテンプレートエンジンの NAME です。 template_engine は response_class の using キーワード引数として渡されます。デフォルトは None で、 Django は設定された全てのエンジンでテンプレートを検索 ... します。 response_class ¶ render_to_response メソッドが返す response クラス。 デフォルトは TemplateResponse です。 TemplateResponse インスタ ...
https://man.mtool.work/django/6.1/ref/class-based-views/mixins-simple.html
シンプルなミックスイン (mixin) — Django 6.1 ドキュメント 7718
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » シンプルなミックスイン (mixin) ¶ ContextMixin ¶ class django.views.generic.base. ContextMixin ¶ 属性 extra_context ¶ コンテキストに含める辞書。これは ... てください。より詳しい情報については、 テンプレートコンテキストのレンダリング に関するドキュメントを読んでください。 TemplateResponseMixin ¶ class django.views.generic.base. TemplateResponseMixin ¶ 適切なコンテキストを指定して TemplateResponse を構築するメ ... 例外が発生します。 template_engine ¶ テンプレートを読み込む際に使用するテンプレートエンジンの NAME です。 template_engine は response_class の using キーワード引数として渡されます。デフォルトは None で、 Django は設定された全てのエンジンでテンプレートを検索 ... します。 response_class ¶ render_to_response メソッドが返す response クラス。 デフォルトは TemplateResponse です。 TemplateResponse インスタ ...
https://man.mtool.work/django/6.1/ref/class-based-views/mixins-simple.html
クラスベースのビューでミックスイン (mixin) を使用する — Django 6.1 ドキュメント 7718
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クラスベースのビューでミックスイン (mixin) を使用する ¶ 注意 This is an advanced topic. A working knowledge of Django's class-based views is advised ... ます; POST ではテンプレートをレンダリングするだけで、 GET のときはまったく異なる処理がしたいときなどです。この場合、 TemplateResponse を直接使えますが、コードが重複する結果となってしまいます。 この理由から、Django は個別の機能を提供する多くの mixin を用意し ... ています。たとえば、テンプレートのレンダリングは TemplateResponseMixin でカプセル化されています。Django のリファレンスドキュメントには すべてのミックスインの完全なドキュメント があります。 ... ixin) が用意されており、クラスベースビュー内のテンプレートを扱うインターフェースに一貫性を保ちやすくなっています。 TemplateResponseMixin Every built in view which returns a TemplateResponse will call the render_to_response() method that TemplateResponseM ...
https://man.mtool.work/django/6.1/topics/class-based-views/mixins.html
クラスベースのビューでミックスイン (mixin) を使用する — Django 6.1 ドキュメント 7718
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クラスベースのビューでミックスイン (mixin) を使用する ¶ 注意 This is an advanced topic. A working knowledge of Django's class-based views is advised ... ます; POST ではテンプレートをレンダリングするだけで、 GET のときはまったく異なる処理がしたいときなどです。この場合、 TemplateResponse を直接使えますが、コードが重複する結果となってしまいます。 この理由から、Django は個別の機能を提供する多くの mixin を用意し ... ています。たとえば、テンプレートのレンダリングは TemplateResponseMixin でカプセル化されています。Django のリファレンスドキュメントには すべてのミックスインの完全なドキュメント があります。 ... ixin) が用意されており、クラスベースビュー内のテンプレートを扱うインターフェースに一貫性を保ちやすくなっています。 TemplateResponseMixin Every built in view which returns a TemplateResponse will call the render_to_response() method that TemplateResponseM ...
https://man.mtool.work/django/6.1/topics/class-based-views/mixins.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT