Re: two object returned for exact pk lookup

2006-02-20 Thread Amit Upadhyay
On 2/15/06, Maniac <[EMAIL PROTECTED]> wrote: If it's MySQL then it looks very much like threading issues (withPostgres it fails somewhat differently). There is a patch fixing it inhttp://code.djangoproject.com/ticket/463 Hi Maniac,Thanks for the pointer, I applied the patch and my application has

Re: two object returned for exact pk lookup

2006-02-15 Thread Maniac
Amit Upadhyay wrote: On 2/15/06, *Maniac* <[EMAIL PROTECTED] > wrote: It may be threading... What http server and what database you use? If http is Apache does it use threaded worker? Threading? Thats surprizing, I am using apache with fastcgi, as documen

Re: two object returned for exact pk lookup

2006-02-15 Thread Amit Upadhyay
On 2/15/06, Maniac <[EMAIL PROTECTED]> wrote: It may be threading... What http server and what database you use? Ifhttp is Apache does it use threaded worker?Threading? Thats surprizing, I am using apache with fastcgi, as documented on  http://wiki.dreamhost.com/index.php/Django. Database is MySQL

Re: two object returned for exact pk lookup

2006-02-15 Thread Maniac
Amit Upadhyay wrote: How can I get more than one Blog when I am specifying pk. This happens just once, while that page is accessed more than hundreads of times everyday, I am getting a clean output when I do it on python prompt: >>> from django.models.blogger import * >>> blogs.get_o

Re: two object returned for exact pk lookup

2006-02-15 Thread Amit Upadhyay
Hi,I just got another mail for some other pk, and I got three objects, I am starting to get worried, I am planning to take my service out of beta coming weekend, and this has shaken my confidence. get_object_or_404 should lead to 404 exception for any exception I guess. But much more importantly th

two object returned for exact pk lookup

2006-02-15 Thread Amit Upadhyay
Hi,Today I got this in mail:  File "/home/amitu/django_projects/amitucom/apps/blogger/js_views.py", line 57, in jsma    blog = get_object_or_404(blogs, pk=blog_id)  File "/home/amitu/django_src/django/core/extensions.py", line 39, in get_object_or_404    return mod.get_object(**kwargs)  File "/hom