Re: Modules path when importing models

2008-08-29 Thread Alexis Bellido
Thanks a lot, now I get it. That's exactly why I asked, I suspected that the imports had to be done is such a way that they would be independent of the location of app so I can reuse the code in many projects. Cheers! --~--~-~--~~~---~--~~ You received this message

Re: Modules path when importing models

2008-08-25 Thread Norman Harman
Alexis Bellido wrote: > I'm reading the Django book and playing with the 'mysite' test site, > in many parts I've noticed something like this in views.py: > > from mysite.models import Event, BlogEntry > > I was wondering if it's good practice using 'mysite.models' (which > seems to be an 'abso

Modules path when importing models

2008-08-25 Thread Alexis Bellido
I'm reading the Django book and playing with the 'mysite' test site, in many parts I've noticed something like this in views.py: from mysite.models import Event, BlogEntry I was wondering if it's good practice using 'mysite.models' (which seems to be an 'absolute path' for importing) or if it w