Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#18642 closed Cleanup/optimization (fixed)

Pointer to django.shortcuts.render

Reported by: anonymous Owned by: Andrews Medina
Component: Documentation Version: 1.4
Severity: Normal Keywords:
Cc: andrewsmedina@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Hi,

I wish the documentation would point to https://docs.djangoproject.com/en/1.4/topics/http/shortcuts/#render from the relevant Note section in https://docs.djangoproject.com/en/1.4/ref/templates/api/#django.template.RequestContext, rather than suggesting that I'm stuck with having to pass "context_instance=RequestContext(request)" to each render_to_response which I want to have TEMPLATE_CONTEXT_PROCESSORS (ie all of them).

Many thanks.

Change History (5)

comment:1 by Aymeric Augustin, 12 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Andrews Medina, 12 years ago

Cc: andrewsmedina@… added
Owner: changed from nobody to anonymous

comment:3 by Andrews Medina, 12 years ago

Owner: changed from anonymous to Andrews Medina

comment:4 by Tim Graham <timograham@…>, 12 years ago

Resolution: fixed
Status: newclosed

In [f99ecaff064af334adfd9a690e77c24ed8b15cbd]:

Fixed #18642 - Added a note suggesting the use of render() rather than render_to_response() if you need RequestContext in your template.

comment:5 by Tim Graham <timograham@…>, 12 years ago

In [c274a9cbd03bd3a90c2400b6efc63a59c5e64b33]:

[1.4.X] Fixed #18642 - Added a note suggesting the use of render() rather than render_to_response() if you need RequestContext in your template.

Backport of f99ecaff06 from master

Note: See TracTickets for help on using tickets.
Back to Top