#10801: tutorial part 4 vote view needs to redirect in the error case ---------------------------+------------------------------------------------ Reporter: [email protected] | Owner: nobody Status: new | Milestone: Component: Documentation | Version: 1.0 Keywords: | Stage: Unreviewed Has_patch: 0 | ---------------------------+------------------------------------------------ In part 4 of the tutorial the vote view has the following code for the case that no choice was picked: {{{ return render_to_response('polls/detail.html', { 'poll': p, 'error_message': "You didn't select a choice.", }) }}} However, the resulting URL is of the form "http://127.0.0.1:8000/polls/1/vote/" rather than what is should be "http://127.0.0.1:8000/polls/1/". So a redirect is needed. I don't know the best way to do that.
-- Ticket URL: <http://code.djangoproject.com/ticket/10801> 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 -~----------~----~----~----~------~----~------~--~---
