Re: accessing db api from models.py breaks apps/models loading

2007-09-11 Thread Marty Alchin
I'll be looking into this a bit this week, hopefully I can get something nailed down before the sprint. It's rearing its ugly head in one of my projects that really can't afford to have models disappearing from the admin. I'll post more when I know more. -Gul

Re: accessing db api from models.py breaks apps/models loading

2007-09-05 Thread Malcolm Tredinnick
On Wed, 2007-09-05 at 11:07 -0700, Ilya Semenov wrote: > I've run into this problem when using dbsettings / django-values in my > project, but the source of the problem actually lies deeper. > > There's a core class django.db.models.loading.AppCache which populates > the list of project apps and

Re: accessing db api from models.py breaks apps/models loading

2007-09-05 Thread James Bennett
On 9/5/07, Ilya Semenov <[EMAIL PROTECTED]> wrote: > There's a core class django.db.models.loading.AppCache which populates > the list of project apps and models. It works pretty well unless a > specific set of conditions is met. My comment_utils app had this issue for a while, too, since I was

accessing db api from models.py breaks apps/models loading

2007-09-05 Thread Ilya Semenov
I've run into this problem when using dbsettings / django-values in my project, but the source of the problem actually lies deeper. There's a core class django.db.models.loading.AppCache which populates the list of project apps and models. It works pretty well unless a specific set of conditions