t when you click on “Vote”
> without selecting any choice. The text of the print statement will show up
> in the console where you launched `python manage.py runserver`.
>
> If you see the output “context: “ and the ‘error_message’ string with the
> actual message, then you have a
I do. Is that line causing the behavior?
On Monday, September 29, 2014 7:15:47 AM UTC-4, Daniel Rus Morales wrote:
>
> Hi Zaiks0105,
>
> Do you have the following line in "your polls/templates/polls/detail.html”?
>
> {% if error_message %}{{ error_message }}{% endif %}
&
Hi,
I am following Django official tutorial and have unanswered issue at part
4, https://docs.djangoproject.com/en/1.7/intro/tutorial04/. Here is the
exception handling code,
except (KeyError, Choice.DoesNotExist):
# Redisplay the question voting form.
return render(request,
3 matches
Mail list logo