Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#18642 closed Cleanup/optimization (fixed)

Pointer to django.shortcuts.render

Reported by: anonymous Owned by: andrews
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 Changed 3 years ago by aaugustin

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 3 years ago by andrews

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

comment:3 Changed 3 years ago by andrews

  • Owner changed from anonymous to andrews

comment:4 Changed 3 years ago by Tim Graham <timograham@…>

  • Resolution set to fixed
  • Status changed from new to closed

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 Changed 3 years ago by Tim Graham <timograham@…>

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