Re: Modules Imported Multiple Times

2008-07-16 Thread Michael Glassford
Malcolm Tredinnick wrote: > > On Mon, 2008-07-14 at 23:30 -0700, django-m712 wrote: > [...] >> Has anyone else experienced this problem? > > There are a few places in Django where we need to access all the models > in an app, for example. So we use __import__(), since that's the safest > way to

Re: Modules Imported Multiple Times

2008-07-15 Thread Malcolm Tredinnick
On Mon, 2008-07-14 at 23:30 -0700, django-m712 wrote: [...] > Has anyone else experienced this problem? There are a few places in Django where we need to access all the models in an app, for example. So we use __import__(), since that's the safest way to do this. This is the same as calling relo

Modules Imported Multiple Times

2008-07-14 Thread django-m712
Hi, I'm having a problem where Python modules are being imported multiple times and I cannot figure out why. I have a simple, standard set up created with the following commands: django-admin.py startproject mytest cd mytest manage.py startapp app1 I would like to run some initialization code b