class documentation
class SimpleTemplateResponse(HttpResponse): (source)
Known subclasses: django.template.response.TemplateResponse
Undocumented
Method | __getstate__ |
Raise an exception if trying to pickle an unrendered response. Pickle only rendered data, not the data used to construct the response. |
Method | __init__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | add |
Add a new post-rendering callback. |
Method | content |
Set the content for the response. |
Method | render |
Render (thereby finalizing) the content of the response. |
Method | resolve |
Undocumented |
Method | resolve |
Accept a template object, path-to-template, or list of paths. |
Class Variable | rendering |
Undocumented |
Instance Variable | context |
Undocumented |
Instance Variable | template |
Undocumented |
Instance Variable | using |
Undocumented |
Property | content |
Undocumented |
Property | is |
Undocumented |
Property | rendered |
Return the freshly rendered content for the template and context described by the TemplateResponse. |
Instance Variable | _is |
Undocumented |
Instance Variable | _post |
Undocumented |
Instance Variable | _request |
Undocumented |
Inherited from HttpResponse
:
Method | __repr__ |
Undocumented |
Method | getvalue |
Undocumented |
Method | serialize |
Full HTTP message, including headers, as a bytestring. |
Method | tell |
Undocumented |
Method | writable |
Undocumented |
Method | write |
Undocumented |
Method | writelines |
Undocumented |
Class Variable | streaming |
Undocumented |
Instance Variable | _container |
Undocumented |
Inherited from HttpResponseBase
(via HttpResponse
):
Method | __delitem__ |
Undocumented |
Method | __getitem__ |
Undocumented |
Method | __setitem__ |
Undocumented |
Method | charset |
Undocumented |
Method | close |
Undocumented |
Method | delete |
Undocumented |
Method | flush |
Undocumented |
Method | get |
Undocumented |
Method | has |
Case-insensitive check for a header. |
Method | items |
Undocumented |
Method | make |
Turn a value into a bytestring encoded in the output charset. |
Method | readable |
Undocumented |
Method | reason |
Undocumented |
Method | seekable |
Undocumented |
Method | serialize |
HTTP headers as a bytestring. |
Method | set |
Set a cookie. |
Method | set |
Undocumented |
Method | setdefault |
Set a header unless it has already been set. |
Instance Variable | closed |
Undocumented |
Instance Variable | cookies |
Undocumented |
Instance Variable | headers |
Undocumented |
Instance Variable | status |
Undocumented |
Property | charset |
Undocumented |
Property | reason |
Undocumented |
Instance Variable | _charset |
Undocumented |
Instance Variable | _handler |
Undocumented |
Instance Variable | _reason |
Undocumented |
Instance Variable | _resource |
Undocumented |
Property | _content |
Undocumented |
Raise an exception if trying to pickle an unrendered response. Pickle only rendered data, not the data used to construct the response.
def __init__(self, template, context=None, content_type=None, status=None, charset=None, using=None, headers=None):
(source)
¶
overrides
django.http.HttpResponse.__init__
overridden in
django.template.response.TemplateResponse
Undocumented
Add a new post-rendering callback. If the response has already been rendered, invoke the callback immediately.
Render (thereby finalizing) the content of the response. If the content has already been rendered, this is a no-op. Return the baked response instance.