Re: Newbie Question: Django Tutorial Part 4 - Exception Issue

2014-10-01 Thread Daniel Rus Morales
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

Re: Newbie Question: Django Tutorial Part 4 - Exception Issue

2014-10-01 Thread zaiks0105
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.

Re: Newbie Question: Django Tutorial Part 4 - Exception Issue

2014-09-29 Thread Daniel Rus Morales
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

Re: Newbie Question: Django Tutorial Part 4 - Exception Issue

2014-09-29 Thread zaiks0105
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

Re: Newbie Question: Django Tutorial Part 4 - Exception Issue

2014-09-29 Thread Daniel Rus Morales
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,

Newbie Question: Django Tutorial Part 4 - Exception Issue

2014-09-29 Thread zaiks0105
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