[Django] #26410: Documentation for render_to_string removed

13 views
Skip to first unread message

Django

unread,
Mar 25, 2016, 6:31:58 PM3/25/16
to django-...@googlegroups.com
#26410: Documentation for render_to_string removed
-------------------------------+--------------------
Reporter: zachborboa | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.9
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
Hi. It appears the render_to_string shortcut example was removed. Can this
example be added back to the docs? Thanks

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.

Django

unread,
Mar 25, 2016, 7:37:45 PM3/25/16
to django-...@googlegroups.com
#26410: Documentation for render_to_string removed
-------------------------------+--------------------------------------
Reporter: zachborboa | Owner: nobody
Type: Uncategorized | Status: closed
Component: Uncategorized | Version: 1.9
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by timgraham):

* 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>

Django

unread,
Mar 25, 2016, 7:47:10 PM3/25/16
to django-...@googlegroups.com
#26410: Documentation for render_to_string removed
-------------------------------+--------------------------------------
Reporter: zachborboa | Owner: nobody
Type: Uncategorized | Status: closed
Component: Uncategorized | Version: 1.9
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------

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>

Django

unread,
Mar 25, 2016, 8:35:53 PM3/25/16
to django-...@googlegroups.com
#26410: Add a docs example for loader.render_to_string()
--------------------------------------+------------------------------------
Reporter: zachborboa | Owner: nobody
Type: Cleanup/optimization | Status: closed
Component: Documentation | Version: 1.9
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by timgraham):

* 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>

Django

unread,
Mar 26, 2016, 3:03:47 PM3/26/16
to django-...@googlegroups.com
#26410: Add a docs example for loader.render_to_string()
--------------------------------------+------------------------------------
Reporter: zachborboa | Owner: nobody
Type: Cleanup/optimization | Status: new

Component: Documentation | Version: 1.9
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by zachborboa):

* status: closed => new
* resolution: invalid =>


--
Ticket URL: <https://code.djangoproject.com/ticket/26410#comment:4>

Django

unread,
Mar 30, 2016, 10:50:36 AM3/30/16
to django-...@googlegroups.com
#26410: Add a docs example for loader.render_to_string()
-------------------------------------+-------------------------------------
Reporter: zachborboa | Owner: betojulio
Type: | Status: assigned
Cleanup/optimization |

Component: Documentation | Version: 1.9
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by betojulio):

* owner: nobody => betojulio
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/26410#comment:5>

Django

unread,
Mar 30, 2016, 7:41:31 PM3/30/16
to django-...@googlegroups.com
#26410: Add a docs example for loader.render_to_string()
-------------------------------------+-------------------------------------
Reporter: zachborboa | Owner: betojulio
Type: | Status: assigned
Cleanup/optimization |
Component: Documentation | Version: 1.9
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by betojulio):

* Attachment "26410.diff" added.

Django

unread,
Mar 30, 2016, 7:42:49 PM3/30/16
to django-...@googlegroups.com
#26410: Add a docs example for loader.render_to_string()
-------------------------------------+-------------------------------------
Reporter: zachborboa | Owner: betojulio
Type: | Status: assigned
Cleanup/optimization |
Component: Documentation | Version: 1.9
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Django

unread,
Mar 31, 2016, 9:55:48 AM3/31/16
to django-...@googlegroups.com
#26410: Add a docs example for loader.render_to_string()
-------------------------------------+-------------------------------------
Reporter: zachborboa | Owner: betojulio
Type: | Status: assigned
Cleanup/optimization |
Component: Documentation | Version: 1.9
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Django

unread,
Mar 31, 2016, 9:56:19 AM3/31/16
to django-...@googlegroups.com
#26410: Add a docs example for loader.render_to_string()
-------------------------------------+-------------------------------------
Reporter: zachborboa | Owner: betojulio
Type: | Status: closed

Cleanup/optimization |
Component: Documentation | Version: 1.9
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* 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>

Django

unread,
Mar 31, 2016, 9:58:38 AM3/31/16
to django-...@googlegroups.com
#26410: Add a docs example for loader.render_to_string()
-------------------------------------+-------------------------------------
Reporter: zachborboa | Owner: betojulio
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 1.9
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Reply all
Reply to author
Forward
0 new messages