per page, with , order by , clip by
Results of 1 - 10 of about 324 for View (0.003 sec.)
ベース・ビュー — Django 6.1 ドキュメント 8081
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ベース・ビュー ¶ 以下の3つのクラスは、Django のビューの作成に必要な多くの機能を提供します。これらは Django ビューの 親の ビューとみなすことができ、そ ... 原型のクラスは 継承元 (MRO) セクションにドキュメントがあります。MRO は メソッド解決順序 (Method Resolution Order) の略です。 View ¶ class django.views.generic.base. View ¶ 基本ビュークラス。他の全てのクラスベースのビューはこの基底クラスを継承します。厳 ... 密にはジェネリックビューではないので、 django.views からインポートすることもできます。 メソッドのフローチャート setup() dispatch() http_method_not_allowed() options() Exampl ... e views.py : from django.http import HttpResponse from django.views import View class MyView ( View ): def get ( self , request , ...
https://man.mtool.work/django/6.1/ref/class-based-views/base.html
ベース・ビュー — Django 6.1 ドキュメント 7952
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ベース・ビュー ¶ 以下の3つのクラスは、Django のビューの作成に必要な多くの機能を提供します。これらは Django ビューの 親の ビューとみなすことができ、そ ... 原型のクラスは 継承元 (MRO) セクションにドキュメントがあります。MRO は メソッド解決順序 (Method Resolution Order) の略です。 View ¶ class django.views.generic.base. View ¶ 基本ビュークラス。他の全てのクラスベースのビューはこの基底クラスを継承します。厳 ... 密にはジェネリックビューではないので、 django.views からインポートすることもできます。 メソッドのフローチャート setup() dispatch() http_method_not_allowed() options() Exampl ... e views.py : from django.http import HttpResponse from django.views import View class MyView ( View ): def get ( self , request , ...
https://man.mtool.work/django/6.1/ref/class-based-views/base.html
Django のショートカット関数 — Django 6.1 ドキュメント 7574
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django のショートカット関数 ¶ django.shortcuts パッケージは、MVC の複数のレベルにまたがるヘルパー関数とクラスを集めたものです。言い換えれば、これらの ... myapp/index.html をMIMEタイプ application/xhtml+xml でレンダリングしてみます。 from django.shortcuts import render def my_view ( request ): # View code here... return render ( request , "myapp/index.html" , { "foo" : "bar" , }, content_type = "appli ... tml+xml" , ) この例は次のコードと等価です。 from django.http import HttpResponse from django.template import loader def my_view ( request ): # View code here... t = loader . get_template ( "myapp/index.html" ) c = { "foo" : "bar" } return HttpRespons ... ェクトの get_absolute_url() メソッドが呼び出され、リダイレクト URL を返します: from django.shortcuts import redirect def my_view ( request ): ... obj = MyModel . objects . get ( ... ) return redirect ( obj ) ビューの名前と、オプションで位置引数またはキ ...
https://man.mtool.work/django/6.1/topics/http/shortcuts.html
Django のショートカット関数 — Django 6.1 ドキュメント 7528
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django のショートカット関数 ¶ django.shortcuts パッケージは、MVC の複数のレベルにまたがるヘルパー関数とクラスを集めたものです。言い換えれば、これらの ... myapp/index.html をMIMEタイプ application/xhtml+xml でレンダリングしてみます。 from django.shortcuts import render def my_view ( request ): # View code here... return render ( request , "myapp/index.html" , { "foo" : "bar" , }, content_type = "appli ... tml+xml" , ) この例は次のコードと等価です。 from django.http import HttpResponse from django.template import loader def my_view ( request ): # View code here... t = loader . get_template ( "myapp/index.html" ) c = { "foo" : "bar" } return HttpRespons ... ェクトの get_absolute_url() メソッドが呼び出され、リダイレクト URL を返します: from django.shortcuts import redirect def my_view ( request ): ... obj = MyModel . objects . get ( ... ) return redirect ( obj ) ビューの名前と、オプションで位置引数またはキ ...
https://man.mtool.work/django/6.1/topics/http/shortcuts.html
クラスベースビュー — Django 6.1 ドキュメント 7362
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クラスベースビュー ¶ ビューとは、リクエストを受け取り、レスポンスを返す呼び出し可能オブジェクトです。ビューは単なる関数以上のものにもなり得ます。Dja ... り、これらを利用することで、ビューを構造化し、継承やミックスインを活用してコードを再利用できます。また、汎用ビュー(generic view)も用意されていますが、それについては後ほど説明します。あなたのユースケースに合った再利用可能なビューの構造を設計することも ... ミックスイン (mixin) を使用する There are community-maintained solutions! Django has a vibrant ecosystem. There are generic view extensions highlighted on the Community Ecosystem page that build on Django's class-based views. The Django Packages Class ... Based Views grid has even more options for you! 基本的な例 ¶ Django は、さまざまなアプリケーションに広く適用できるベースビュークラスを ...
https://man.mtool.work/django/6.1/topics/class-based-views/
クラスベースビュー入門 — Django 6.1 ドキュメント 7270
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クラスベースビュー入門 ¶ クラスベースビューはビューを実装するもう一つの手段で、関数の代わりに Python のオブジェクトとしてビューを定義します。クラスベ ... 、ビュー関数の場合に HTTP GET をハンドリングするコードが次のようになるとすると、 from django.http import HttpResponse def my_view ( request ): if request . method == "GET" : # <view logic> return HttpResponse ( "result" ) クラスベースのビューでは以下の ... ようになります。 from django.http import HttpResponse from django.views import View class MyView ( View ): def get ( self , request ): # <view logic> return HttpResponse ( "result" ) DjangoのUR ... 、クラスベースのビューには、関連するパターンに一致するURLに対するリクエストが到着したときに呼び出すことができる関数を返す as_view() クラスメソッドがあります。この関数はクラスのインスタンスを作成し、 setup() を呼び出してその属性を初期化し、次にその disp ...
https://man.mtool.work/django/6.1/topics/class-based-views/intro.html
クラスベースのジェネリックビュー: フラットインデックス — Django 6.1 ドキュメン... 7187
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クラスベースのジェネリックビュー: フラットインデックス ¶ この索引は、クラスベースビューのリファレンス文書を、異なる観点から編成したものです。ビューご ... 動作を定義するクラスの観点から編集されたリファレンス文書は、 クラスベースビュー を参照してください。 参考 Classy Class-Based Views では、ビルトインのクラスベースビューのクラスのヒエラルキーがわかりやすく紹介されています。 シンプルなジェネリックビュー ¶ ... View ¶ class View ¶ 属性 (とオプションのアクセサ): http_method_names メソッド as_view() dispatch() head() http_method_not_allow ... ed() setup() TemplateView ¶ class TemplateView ¶ 属性 (とオプションのアクセサ): content_type extra_context http_method_names response_class [ render ...
https://man.mtool.work/django/6.1/ref/class-based-views/flattened-index.html
クラスベースビュー — Django 6.1 ドキュメント 7150
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クラスベースビュー ¶ ビューとは、リクエストを受け取り、レスポンスを返す呼び出し可能オブジェクトです。ビューは単なる関数以上のものにもなり得ます。Dja ... り、これらを利用することで、ビューを構造化し、継承やミックスインを活用してコードを再利用できます。また、汎用ビュー(generic view)も用意されていますが、それについては後ほど説明します。あなたのユースケースに合った再利用可能なビューの構造を設計することも ... ミックスイン (mixin) を使用する There are community-maintained solutions! Django has a vibrant ecosystem. There are generic view extensions highlighted on the Community Ecosystem page that build on Django's class-based views. The Django Packages Class ... Based Views grid has even more options for you! 基本的な例 ¶ Django は、さまざまなアプリケーションに広く適用できるベースビュークラスを ...
https://man.mtool.work/django/6.1/topics/class-based-views/
クラスベースビュー入門 — Django 6.1 ドキュメント 7058
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クラスベースビュー入門 ¶ クラスベースビューはビューを実装するもう一つの手段で、関数の代わりに Python のオブジェクトとしてビューを定義します。クラスベ ... 、ビュー関数の場合に HTTP GET をハンドリングするコードが次のようになるとすると、 from django.http import HttpResponse def my_view ( request ): if request . method == "GET" : # <view logic> return HttpResponse ( "result" ) クラスベースのビューでは以下の ... ようになります。 from django.http import HttpResponse from django.views import View class MyView ( View ): def get ( self , request ): # <view logic> return HttpResponse ( "result" ) DjangoのUR ... 、クラスベースのビューには、関連するパターンに一致するURLに対するリクエストが到着したときに呼び出すことができる関数を返す as_view() クラスメソッドがあります。この関数はクラスのインスタンスを作成し、 setup() を呼び出してその属性を初期化し、次にその disp ...
https://man.mtool.work/django/6.1/topics/class-based-views/intro.html
クラスベースのジェネリックビュー: フラットインデックス — Django 6.1 ドキュメン... 6975
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クラスベースのジェネリックビュー: フラットインデックス ¶ この索引は、クラスベースビューのリファレンス文書を、異なる観点から編成したものです。ビューご ... 動作を定義するクラスの観点から編集されたリファレンス文書は、 クラスベースビュー を参照してください。 参考 Classy Class-Based Views では、ビルトインのクラスベースビューのクラスのヒエラルキーがわかりやすく紹介されています。 シンプルなジェネリックビュー ¶ ... View ¶ class View ¶ 属性 (とオプションのアクセサ): http_method_names メソッド as_view() dispatch() head() http_method_not_allow ... ed() setup() TemplateView ¶ class TemplateView ¶ 属性 (とオプションのアクセサ): content_type extra_context http_method_names response_class [ render ...
https://man.mtool.work/django/6.1/ref/class-based-views/flattened-index.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT