MCPcopy
hub / github.com/django/django / TemplateResponse

Class TemplateResponse

django/template/response.py:147–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145
146
147class TemplateResponse(SimpleTemplateResponse):
148 rendering_attrs = [*SimpleTemplateResponse.rendering_attrs, "_request"]
149
150 def __init__(
151 self,
152 request,
153 template,
154 context=None,
155 content_type=None,
156 status=None,
157 charset=None,
158 using=None,
159 headers=None,
160 ):
161 super().__init__(
162 template, context, content_type, status, charset, using, headers=headers
163 )
164 self._request = request

Callers 15

user_change_passwordMethod · 0.90
indexFunction · 0.90
sitemapFunction · 0.90
indexMethod · 0.90
app_indexMethod · 0.90
render_change_formMethod · 0.90
response_addMethod · 0.90
response_changeMethod · 0.90
response_deleteMethod · 0.90
render_delete_formMethod · 0.90
changelist_viewMethod · 0.90
history_viewMethod · 0.90

Calls

no outgoing calls

Tested by 10

test_get_cache_keyMethod · 0.72
_responseMethod · 0.72
test_argsMethod · 0.72
test_usingMethod · 0.72
test_picklingMethod · 0.72
test_headersMethod · 0.72