My pleasure ;)
Enjoy coding!
On 01 Oct 2014, at 22:04, zaiks0105 wrote:
> Daniel,
>
> I appreciate your help. I got drifted away yesterday and got back to it
> today. I found my mistake: a fricking typo. My polls/detail.html look for
> 'error_message' while I spelt 'error_messge' in my views
Daniel,
I appreciate your help. I got drifted away yesterday and got back to it
today. I found my mistake: a fricking typo. My polls/detail.html look for
'error_message' while I spelt 'error_messge' in my views.py. So the error
msg was never shown though the page was redirected properly.
Thank
No, that’s not the cause, the lack of it would be. That line shows the content
of ‘error_message' when it does exist and has a value other than None. But if
you have it in your template the error must be somewhere else in your code.
Must be a simple syntax mistake you didn’t notice, either in th
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 %}
>
>
> On 29 Sep 2014, at 1
Hi Zaiks0105,
Do you have the following line in "your polls/templates/polls/detail.html”?
{% if error_message %}{{ error_message }}{% endif %}
On 29 Sep 2014, at 12:48, zaiks0105 wrote:
> Hi,
>
> I am following Django official tutorial and have unanswered issue at part 4,
> https://docs.djan
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,
6 matches
Mail list logo