Opened 13 years ago

Closed 13 years ago

#16344 closed Bug (fixed)

Wrong render example in docs

Reported by: Jure Cuhalev <gandalf@…> Owned by: teraom
Component: Documentation Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

In second example for render(): https://docs.djangoproject.com/en/dev/topics/http/shortcuts/#example

it imports Context but then uses RequestContext.

Fix:
change:

c = RequestContext(request, {'foo': 'bar'})

to:

c = Context(request, {'foo': 'bar'})

since it's a simple render

Attachments (1)

render_docs_example-16344.diff (532 bytes ) - added by teraom 13 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by Paul McMillan, 13 years ago

Easy pickings: set
Triage Stage: UnreviewedAccepted

by teraom, 13 years ago

comment:2 by teraom, 13 years ago

Has patch: set
Owner: changed from nobody to teraom
Status: newassigned

comment:3 by Paul McMillan, 13 years ago

Triage Stage: AcceptedReady for checkin

comment:4 by Jannis Leidel, 13 years ago

Resolution: fixed
Status: assignedclosed

In [16465]:

Fixed #16344 -- Fixed typo in render() docs. Thanks, Jure Cuhalev.

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