#16344: Wrong render example in docs
--------------------------------------+-------------------------------
 Reporter:  Jure Cuhalev <gandalf@…>  |          Owner:  nobody
     Type:  Bug                       |         Status:  new
Milestone:                            |      Component:  Documentation
  Version:  SVN                       |       Severity:  Normal
 Keywords:                            |   Triage Stage:  Unreviewed
Has patch:  0                         |  Easy pickings:  0
    UI/UX:  0                         |
--------------------------------------+-------------------------------
 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

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16344>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to