... れます。 デフォルトの実装では、 template_name を含むリストを返します(指定された場合)。 目次 シンプルなミックスイン (mixin) ContextMixin TemplateResponseMixin 前のトピックへ クラスベースビューのミックスイン (mixin) 次のトピックへ 単一オブジェクト ミックスイン ... ード テンプレート response コンテキスト context template インスタンス kwargs キーワード TemplateResponse views generic view ContextMixin base 属性 extra 辞書 TemplateView self alters レンダリング TemplateResponseMixin サブクラス engine エンジン クイック検索 L ... ... れます。 デフォルトの実装では、 template_name を含むリストを返します(指定された場合)。 目次 シンプルなミックスイン (mixin) ContextMixin TemplateResponseMixin 前のトピックへ クラスベースビューのミックスイン (mixin) 次のトピックへ 単一オブジェクト ミックスイン ... ... 、以下のビューからメソッドと属性を継承しています: django.views.generic.base.TemplateResponseMixin django.views.generic.base.ContextMixin django.views.generic.base.View メソッドのフローチャート setup() dispatch() http_method_not_allowed() get_context_data() Ex ... m myapp.views import HomePageView urlpatterns = [ path ( "" , HomePageView . as_view (), name = "home" ), ] コンテキスト ( ContextMixin を通じて) ビューに対応した URL パターンからキャプチャされたキーワード引数とともに入力されます。 as_view() に extra_context ... ... 、以下のビューからメソッドと属性を継承しています: django.views.generic.base.TemplateResponseMixin django.views.generic.base.ContextMixin django.views.generic.base.View メソッドのフローチャート setup() dispatch() http_method_not_allowed() get_context_data() Ex ... m myapp.views import HomePageView urlpatterns = [ path ( "" , HomePageView . as_view (), name = "home" ), ] コンテキスト ( ContextMixin を通じて) ビューに対応した URL パターンからキャプチャされたキーワード引数とともに入力されます。 as_view() に extra_context ... ... iew DayArchiveView TodayArchiveView DateDetailView クラスベースビューのミックスイン (mixin) シンプルなミックスイン (mixin) ContextMixin TemplateResponseMixin 単一オブジェクト ミックスイン (Single object mixin) SingleObjectMixin SingleObjectTemplateResponseMi ... ... iew DayArchiveView TodayArchiveView DateDetailView クラスベースビューのミックスイン (mixin) シンプルなミックスイン (mixin) ContextMixin TemplateResponseMixin 単一オブジェクト ミックスイン (Single object mixin) SingleObjectMixin SingleObjectTemplateResponseMi ... ... ric.edit. FormMixin ¶ フォームを作成したり表示したりする機能を提供するmixinクラス。 ミックスイン django.views.generic.base.ContextMixin メソッドと属性 initial ¶ フォームの初期化データのディクショナリ。 form_class ¶ インスタンス化するフォームクラス。 success_ ... ... mplateResponseMixin ) は、実際のオブジェクトを扱うときに、より柔軟なデフォルトを提供するためにこれをオーバーライドします。 ContextMixin Every built in view which needs context data, such as for rendering a template (including TemplateResponseMixin above), sh ... _data() passing any data they want to ensure is in there as keyword arguments. get_context_data() returns a dictionary; in ContextMixin it returns its keyword arguments, but it is common to override this to add more members to the dictionary. You can also us ... ... ric.edit. FormMixin ¶ フォームを作成したり表示したりする機能を提供するmixinクラス。 ミックスイン django.views.generic.base.ContextMixin メソッドと属性 initial ¶ フォームの初期化データのディクショナリ。 form_class ¶ インスタンス化するフォームクラス。 success_ ... ... mplateResponseMixin ) は、実際のオブジェクトを扱うときに、より柔軟なデフォルトを提供するためにこれをオーバーライドします。 ContextMixin Every built in view which needs context data, such as for rendering a template (including TemplateResponseMixin above), sh ... _data() passing any data they want to ensure is in there as keyword arguments. get_context_data() returns a dictionary; in ContextMixin it returns its keyword arguments, but it is common to override this to add more members to the dictionary. You can also us ... 2026年10月08日