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
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
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
3 matches
Mail list logo