#12770: Docs 1.1: Update tuto3 and tuto4 by including RequestContext and
csrf_token
----------------------------+-----------------------------------------------
Reporter: dsnoeck | Owner: nobody
Status: new | Milestone:
Component: Documentation | Version: 1.1
Keywords: RequestContext | Stage: Unreviewed
Has_patch: 1 |
----------------------------+-----------------------------------------------
In the chapter "Raising 404" of the tutorial 3, the code need to be
updated with the RequestContext() (Only for dev doc)
{{{
def detail(request, poll_id):
p = get_object_or_404(Poll, pk=poll_id)
return render_to_response('polls/detail.html', {'poll': p},
context_instance=RequestContext(request))
}}}
And the chapter "Write a simple form" of tutorial 4, need to update the
code of the detail view as well by adding {% csrf_token %} in the form
-- Damien
--
Ticket URL: <http://code.djangoproject.com/ticket/12770>
Django <http://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.