... ンプレートとコンテキストの詳細を保持します。レスポンスの最終的な出力は、レスポンス処理の後半で必要になるまで計算されません。 SimpleTemplateResponse オブジェクト class SimpleTemplateResponse [ソース] 属性 SimpleTemplateResponse. template_name The name of the template to ... se returned by get_template() ), the name of a template, or a list of template names. 例: ['foo.html', 'path/to/bar.html'] SimpleTemplateResponse. context_data テンプレートをレンダリングするときに使用するコンテキストデータ。 これは dict でなければなりません。 例: {'fo ... o': 123} SimpleTemplateResponse. rendered_content [ソース] 現在のテンプレートとコンテキストデータを使ってレンダリングされた、レスポンスコンテンツの現在の値 ... ... 分割 (Paginator) リクエストとレスポンスのオブジェクト SchemaEditor 設定 シグナル Tasks テンプレート TemplateResponse および SimpleTemplateResponse Unicode データ django.urls ユーティリティ関数 URLconf で使用するための django.urls 関数 URLconf で使用するための django.co ... ... プレート言語 組み込みテンプレートタグとフィルタ Python プログラマーのための Django テンプレート言語 TemplateResponse および SimpleTemplateResponse SimpleTemplateResponse オブジェクト TemplateResponse オブジェクト レンダリングプロセス TemplateResponse および SimpleTempl ... ... mes of URLs checked by URLValidator to fix a regression in Django 1.8 ( #26204 ). Fixed some crashing deprecation shims in SimpleTemplateResponse that regressed in Django 1.9 ( #26253 ). Fixed BoundField to reallow slices of subwidgets ( #26267 ). Changed the admin's ... ... hash__() (Model のメソッド) __init__() (HttpResponse のメソッド) (QueryDict のメソッド) (requests.RequestSite のメソッド) (SimpleTemplateResponse のメソッド) (SyndicationFeed のメソッド) (TemplateResponse のメソッド) __iter__() (File のメソッド) (HttpRequest のメソッド ... (django.contrib.messages モジュール) add_never_cache_headers() (django.utils.cache モジュール) add_post_render_callback() (SimpleTemplateResponse のメソッド) add_root_elements() (SyndicationFeed のメソッド) add_stylesheets() (SyndicationFeed のメソッド) add_view() (Mo ... r (django.contrib.contenttypes.models のクラス) Context (django.template のクラス) context (Response の属性) context_data (SimpleTemplateResponse の属性) context_object_name (django.views.generic.detail.SingleObjectMixin の属性) (django.views.generic.list.MultipleObje ... ... will continue to be supported. See ヘッダーフィールドをセットする for details. The new headers parameter of HttpResponse , SimpleTemplateResponse , and TemplateResponse allows setting response headers on instantiation. セキュリティ The SECRET_KEY setting is now checke ... ... instead of a tuple will be removed and raise an exception. The mimetype argument to the __init__ methods of HttpResponse , SimpleTemplateResponse , and TemplateResponse , will be removed. content_type should be used instead. This also applies to the render_to_response ... ... duct is removed. INSTALLED_APPS and TEMPLATE_DIRS are no longer corrected from a plain string into a tuple. HttpResponse , SimpleTemplateResponse , TemplateResponse , render_to_response() , index() , and sitemap() no longer take a mimetype argument HttpResponse immedi ... ... templates. All this also applies to select_template() . Template and Context classes in template responses Some methods of SimpleTemplateResponse and TemplateResponse accepted django.template.Context and django.template.Template objects as arguments. They should now r ... ... スコードとして 500 を使用します。 注釈 HttpResponse のカスタムサブクラスが render メソッドを実装している場合、Djangoはそれを SimpleTemplateResponse を模倣しているものとして扱い、 render メソッド自体が有効なレスポンスオブジェクトを返さなければなりません。 カスタムレスポン ... 2026年10月08日