Re: Creating a custom sql query

2008-12-12 Thread Kottiyath Nair
oops!! Unknowingly send the mail before finishing it. As I was mentioning in the earlier mail: What I want is: dbmodel.objects.filter(__first_filter).sum(), should be able to sum across the filtered data. If somebody could help me out on this, I would be very thankful. P.S-> Also, is it safe

Re: Creating a custom sql query

2008-12-14 Thread Kottiyath Nair
Thank you, Karen. On Fri, Dec 12, 2008 at 7:42 PM, Karen Tracey wrote: > On Fri, Dec 12, 2008 at 4:32 AM, Kottiyath Nair wrote: > >> oops!! Unknowingly send the mail before finishing it. >> >> As I was mentioning in the earlier mail: >> What I want is

Django forms usage with mutliple rows

2009-01-05 Thread Kottiyath Nair
Hi, Since I am a newbie in HTML and Django, there might be a completely different way to do this. If somebody can point that also, it would be helpful. I want to send multiple rows of data from a datagrid to a django server. Currently, I am doing it in a single form inside a page with

Django: creating formset is very slow

2009-01-06 Thread Kottiyath Nair
Hi all, My web application sends a medium size data grid (20 elements). I was using formsets for the same. The issue I am facing is that the formset instantiation is very very slow. I timed it and it is taking ~4-7 seconds for it to instantiate. Is there someway the speed can be increased?

Re: Django: creating formset is very slow

2009-01-06 Thread Kottiyath Nair
- 117.90750668 2009-01-07 01:44:17,203 INFO All forms done - 123.39991647 2009-01-07 01:44:17,217 INFO Start - 123.416734808 2009-01-07 01:44:17,217 INFO Formset Class created- 123.41704658 Regards K On 1/7/09, Kottiyath Nair wrote: > > Hi all, >My web application sends a medium size data

upload_to not found

2009-01-08 Thread Kottiyath Nair
Hi, I was trying out a form - with filefield. I used the option upload_to, and django server erred out saying - upload_to not found. I checked django code : >>> import django >>> django.VERSION (1, 0, 2, 'final', 0) class FileField(Field): widget = FileInput default_error_messages = {