Opened 14 years ago
Closed 14 years ago
#16344 closed Bug (fixed)
Wrong render example in docs
| Reported by: | 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)
Change History (5)
comment:1 by , 14 years ago
| Easy pickings: | set |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
by , 14 years ago
| Attachment: | render_docs_example-16344.diff added |
|---|
comment:2 by , 14 years ago
| Has patch: | set |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
comment:3 by , 14 years ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
comment:4 by , 14 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
In [16465]: