Author: russellm
Date: 2010-12-08 18:47:37 -0600 (Wed, 08 Dec 2010)
New Revision: 14863
Modified:
django/trunk/docs/ref/template-response.txt
Log:
Fixed #14867 -- Corrected references to baking in the new TemplateResponse
docs. Thanks to marcusf for the report.
Modified: django/trunk/docs/ref/template-response.txt
===================================================================
--- django/trunk/docs/ref/template-response.txt 2010-12-09 00:26:59 UTC (rev
14862)
+++ django/trunk/docs/ref/template-response.txt 2010-12-09 00:47:37 UTC (rev
14863)
@@ -189,13 +189,13 @@
re-rendered, you can re-evaluate the rendered content, and assign
the content of the response manually::
- # Set up a baked TemplateResponse
+ # Set up a rendered TemplateResponse
>>> t = TemplateResponse(request, 'original.html', {})
>>> t.render()
>>> print t.content
Original content
- # Rebaking doesn't change content
+ # Re-rendering doesn't change content
>>> t.template_name = 'new.html'
>>> t.render()
>>> print t.content
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.