Re: Newbie Question: How to display only error messages when form validation fails?

2008-09-22 Thread Steve Holden
Hanne Moa wrote: > On Fri, Sep 19, 2008 at 7:34 PM, Karthik Krishnan > <[EMAIL PROTECTED]> wrote: > >> It throws a debug error page. >> > > What Kenneth was trying to say was *which* error was in the debug error page. > > >> On Sep 18, 10:01 pm, Kenneth Gonsalves <[EMAIL PROTECTED]>

Re: Newbie Question: How to display only error messages when form validation fails?

2008-09-22 Thread Hanne Moa
On Fri, Sep 19, 2008 at 7:34 PM, Karthik Krishnan <[EMAIL PROTECTED]> wrote: > It throws a debug error page. What Kenneth was trying to say was *which* error was in the debug error page. > On Sep 18, 10:01 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: >> On Friday 19 Sep 2008 7:02:06 am

Re: Newbie Question: How to display only error messages when form validation fails?

2008-09-19 Thread Karthik Krishnan
It throws a debug error page. On Sep 18, 10:01 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On Friday 19 Sep 2008 7:02:06 am Karthik Krishnan wrote: > > > The premise is this: If the form validation fails, I want to display > > all the validation error messages on the top of the page in a

Re: Newbie Question: How to display only error messages when form validation fails?

2008-09-19 Thread Kenneth Gonsalves
On Friday 19 Sep 2008 7:02:06 am Karthik Krishnan wrote: > The premise is this: If the form validation fails, I want to display > all the validation error messages on the top of the page in a special > div tag that I have created. > > {% for field, message in form.errors.items()%} >   {{message}}

Re: Newbie Question: How to display only error messages when form validation fails?

2008-09-18 Thread Steve Holden
Karthik Krishnan wrote: > Hi, > > The premise is this: If the form validation fails, I want to display > all the validation error messages on the top of the page in a special > div tag that I have created. > > {% for field, message in form.errors.items()%} > {{message}} > Shouldn't that be

Newbie Question: How to display only error messages when form validation fails?

2008-09-18 Thread Karthik Krishnan
Hi, The premise is this: If the form validation fails, I want to display all the validation error messages on the top of the page in a special div tag that I have created. {% for field, message in form.errors.items()%} {{message}} {% endfor %} returns a compilation error. I don't want to