Re: Django "freezing" after a few minutes?

2009-08-20 Thread erikcw
Found it! I'm using eventlet in some other code and I imported one of my modules into a django model. So eventlet was taking over and putting everything to "sleep". On Aug 20, 1:34 am, Thomas Guettler <h...@tbz-pariv.de> wrote: > erikcw schrieb: > > > Hi, >

Re: Django "freezing" after a few minutes?

2009-08-19 Thread erikcw
rl-c) the the PID. In the stacktrace > you can see where the python code was hanging (should be in apache > error log). > >  HTH, >    Thomas > > erikcw schrieb: > > > > > Hi, > > > I'm running Django through mod_wsgi and Apache (2.2.8) on Ubuntu 8.04. > >

Django "freezing" after a few minutes?

2009-08-19 Thread erikcw
Hi, I'm running Django through mod_wsgi and Apache (2.2.8) on Ubuntu 8.04. I've been running Django on this setup for about 6 months without any problems. Yesterday, I moved my database (postgres 8.3) to its own server, and my Django site started refusing to load (the browser spinner would just

Re: Reducing the number of my view's database queries

2008-12-12 Thread erikcw
Thanks for all of the responses. Just wanted to share where I'm at at this point: self.profilekeyword_set.select_related().all().extra(select={ 'rank_url': 'SELECT url FROM rankreport_keywordrank WHERE rankreport_keywordrank.keyword_id = rankreport_profilekeyword.keyword_id AND

Reducing the number of my view's database queries

2008-12-06 Thread erikcw
Hi all, I'm trying to write a model query that will return a queryset along with the latest (and earliest) data from 2 related models. Right now I'm doing something like this: objects = Model1.objects.filter(user=3).select_related() #about 6,000 objects data = {} for o in objects:

Named URLs for Flatpages?

2008-10-21 Thread erikcw
Hi all, I'm working on a project that uses flatpages pretty heavily. I was wondering if there was a way to use named urls with flatpages so that I can use reverse() in my other views and {% url flat_privacy_policy %} in my templates. I haven't been able to find anything helpful in the docs so

Re: Audit Trail

2008-08-20 Thread erikcw
Hi Sergio, I updated my code with your changes, and it still doesn't seem to be working. I don't have the history Manager in my model. Is it working for you? Are you using the latest trunk? Thanks! Erik On Aug 19, 12:15 pm, Sérgio Durand <[EMAIL PROTECTED]> wrote: > Hi people, > > Finally