Last seen in 1.7 docs
https://docs.djangoproject.com/en/1.7/ref/templates/api/#the-render-to-
string-shortcut
Removed here
https://github.com/django/django/commit/ee8d5b91e94f6920f846512c978b703f62545ca8
#diff-05455ade27e6c1bdf5c9a5140e5bcf96L930
--
Ticket URL: <https://code.djangoproject.com/ticket/26410>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_docs: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_better_patch: => 0
Comment:
It has moved here:
https://docs.djangoproject.com/en/dev/topics/templates/#django.template.loader.render_to_string
--
Ticket URL: <https://code.djangoproject.com/ticket/26410#comment:1>
Comment (by zachborboa):
Hi Tim, I don't see the `render_to_string` example on that page. Can this
example be added back to the docs? Here's what was removed:
{{{#!python
from django.template.loader import render_to_string
rendered = render_to_string('my_template.html', {'foo': 'bar'})
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26410#comment:2>
* component: Uncategorized => Documentation
* type: Uncategorized => Cleanup/optimization
* easy: 0 => 1
* stage: Unreviewed => Accepted
Comment:
Oh, I guess I don't see a good reason why it was removed other than it's a
bit simple.
--
Ticket URL: <https://code.djangoproject.com/ticket/26410#comment:3>
* status: closed => new
* resolution: invalid =>
--
Ticket URL: <https://code.djangoproject.com/ticket/26410#comment:4>
* owner: nobody => betojulio
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/26410#comment:5>
* Attachment "26410.diff" added.
Comment (by betojulio):
HI.
I compared the file version at
https://github.com/django/django/commit/ee8d5b91e94f6920f846512c978b703f62545ca8
#diff-05455ade27e6c1bdf5c9a5140e5bcf96L930 with the current version and
because the file have changed alot since the last time render_to_string
was on the docs , I decided to put the same information that was removed
at the end of the document.
Do you consider that the information should by updated or moved to another
place inside api.txt?
Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/26410#comment:6>
Comment (by timgraham):
That information is already present in doc in a slightly rephrased form.
I'll make the fix since it's trivial.
--
Ticket URL: <https://code.djangoproject.com/ticket/26410#comment:7>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"a65fc6df891ab449e9c24160f6f6a1d6d2ccb282" a65fc6df]:
{{{
#!CommitTicketReference repository=""
revision="a65fc6df891ab449e9c24160f6f6a1d6d2ccb282"
Fixed #26410 -- Added a docs example for loader.render_to_string().
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26410#comment:8>
Comment (by Tim Graham <timograham@…>):
In [changeset:"d58a324bea2df202bc09bd887f564c3f8e35b2ec" d58a324b]:
{{{
#!CommitTicketReference repository=""
revision="d58a324bea2df202bc09bd887f564c3f8e35b2ec"
[1.9.x] Fixed #26410 -- Added a docs example for
loader.render_to_string().
Backport of a65fc6df891ab449e9c24160f6f6a1d6d2ccb282 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26410#comment:9>