Opened 5 years ago

Closed 5 years ago

#16344 closed Bug (fixed)

Wrong render example in docs

Reported by: Jure Cuhalev <gandalf@…> Owned by: teraom
Component: Documentation Version: master
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 5 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 5 years ago by Paul McMillan

Easy pickings: set
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

Changed 5 years ago by teraom

comment:2 Changed 5 years ago by teraom

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

comment:3 Changed 5 years ago by Paul McMillan

Triage Stage: AcceptedReady for checkin

comment:4 Changed 5 years ago by Jannis Leidel

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