Ticket #8546: django-content-attr.patch
File django-content-attr.patch, 1.0 KB (added by , 16 years ago) |
---|
-
docs/ref/request-response.txt
434 434 There's nothing Django-specific about the ``Content-Disposition`` header, but 435 435 it's easy to forget the syntax, so we've included it here. 436 436 437 Attributes 438 ---------- 439 440 .. attribute:: HttpResponse.content 441 442 Gets or sets the content as a Python string, encoding it from a Unicode 443 object if necessary. Note this is a property. 444 437 445 Methods 438 446 ------- 439 447 … … 501 509 values you used in ``set_cookie()`` -- otherwise the cookie may not be 502 510 deleted. 503 511 504 .. method:: HttpResponse.content()505 506 Returns the content as a Python string, encoding it from a Unicode object507 if necessary. Note this is a property, not a method, so use ``r.content``508 instead of ``r.content()``.509 510 512 .. method:: HttpResponse.write(content) 511 513 512 514 This method makes an :class:`HttpResponse` instance a file-like object.