Re: Share models between django apps

2012-08-06 Thread Ivo Marcelo Leonardi Zaniolo
I solved that problem. It was a circular reference caused by an import in app__unit__.py. I used to put in that file an import.to urls.py. Tanks for your help! Ivo Marcelo Leonardi Zaniolo +55 71 9302 3400 imarcel...@gmail.com www.informatizzare.com.br imarcelolz.blogspot.com.br Em 06/08/2012 15:

Re: Share models between django apps

2012-08-06 Thread Ivo Marcelo Leonardi Zaniolo
Yes, I'd check that, there is no circular reference. *Marcelo* 2012/8/6 Rajeesh Nair > > > Checked for any circular import between these apps also? I guess you > already know such possibilities. Just asking to make sure. > > > Rajeesh. > > -- > You received this message because you are subsc

Re: Share models between django apps

2012-08-06 Thread Rajeesh Nair
Checked for any circular import between these apps also? I guess you already know such possibilities. Just asking to make sure. Rajeesh. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups

Re: Share models between django apps

2012-08-06 Thread Ivo Marcelo Leonardi Zaniolo
Yes, it raises an ImportError, but handled by django. At this point I can't see the stack trace or any other data related to this exception. it displays only the message: Error: cannot import name Medic I've already try to use on that line a relative/full import. *Tanks* *Ivo Marcelo Leonardi Za

Re: Share models between django apps

2012-08-06 Thread Rajeesh Nair
Hi, Please clarify what exactly is the failure. Is it raising ImportError? Then, Try "import from project.common.models" instead of "common.models". Rajeesh. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web

Re: Share models between django apps

2012-08-06 Thread Ivo Marcelo Leonardi Zaniolo
Hello, the common is a directory with an django app. Ivo Marcelo Leonardi Zaniolo +55 71 9302 3400 imarcel...@gmail.com www.informatizzare.com.br imarcelolz.blogspot.com.br Em 06/08/2012 09:02, "Xavier Ordoquy" escreveu: > Hi, > > Le 6 août 2012 à 13:53, Ivo Marcelo Leonardi Zaniolo > a écrit :

Re: Share models between django apps

2012-08-06 Thread Ivo Marcelo Leonardi Zaniolo
Ivo Marcelo Leonardi Zaniolo +55 71 9302 3400 imarcel...@gmail.com www.informatizzare.com.br imarcelolz.blogspot.com.br Em 06/08/2012 09:02, "Xavier Ordoquy" escreveu: > Hi, > > Le 6 août 2012 à 13:53, Ivo Marcelo Leonardi Zaniolo > a écrit : > > I'm having problems share models between 3 differ

Re: Share models between django apps

2012-08-06 Thread Xavier Ordoquy
Hi, Le 6 août 2012 à 13:53, Ivo Marcelo Leonardi Zaniolo a écrit : > I'm having problems share models between 3 different apps. > The models that I share the common app. > > example: > project / > common / models.py > app1/models.py -> import from common.models > app2/models.py -> import from

Share models between django apps

2012-08-06 Thread Ivo Marcelo Leonardi Zaniolo
I'm having problems share models between 3 different apps. The models that I share the common app. example: project / common / models.py app1/models.py -> import from common.models app2/models.py -> import from common.models If I configure the application and only the most common one app, I have