Re: help with form's cleaned_data

2009-03-28 Thread ihomest...@gmail.com
i have found it. just use form.error. On Mar 28, 5:18 pm, ihome wrote: > Hi, > > My form always gets is_valid() as False. Some validation is wrong. > > Is there any error message I could dump from form or form.cleaned_data > to understand why is_valid() is always false? > > thanks. --~--~---

Re: precision for float values in template rendering

2009-03-14 Thread ihomest...@gmail.com
thanks! this is exactly what i need. On Mar 14, 12:04 pm, Alex Gaynor wrote: > On Sat, Mar 14, 2009 at 11:02 AM, ihome wrote: > > > is there an easy way to control the precision for float values? for > > example, i have this in my template: > > > > > > where float p = 0.1234123413 but i only w

Re: weird behaviour of forms in render_to_response

2009-03-14 Thread ihomest...@gmail.com
thanks for the info. I'll track the ticket. for now, I just convert the values to a dict and pass it over to my template. On Mar 14, 12:27 am, Malcolm Tredinnick wrote: > On Fri, 2009-03-13 at 21:08 -0700, ihome wrote: > > Hi, > > > I am using the latest django development version and have some

Re: weird behaviour of forms in render_to_response

2009-03-13 Thread ihomest...@gmail.com
On Mar 14, 12:08 am, ihome wrote: > Hi, > > I am using the latest django development version and have some problem > with the render_to_response to render a template. Here is a short > snippet: > >     return render_to_response('index.html', { >         'form': form, >         'ops' : ops, >