Opened 15 years ago

Closed 15 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 15 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by Paul McMillan, 15 years ago

Easy pickings: set
Triage Stage: Unreviewed → Accepted

by teraom, 15 years ago

comment:2 by teraom, 15 years ago

Has patch: set
Owner: changed from nobody to teraom
Status: new → assigned

comment:3 by Paul McMillan, 15 years ago

Triage Stage: Accepted → Ready for checkin

comment:4 by Jannis Leidel, 15 years ago

Resolution: → fixed
Status: assigned → closed

In [16465]:

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

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