Re: local import or not for django apps?

2008-05-30 Thread Rajesh Dhawan
>From the Python Style Guide (PEP8): http://www.python.org/dev/peps/pep-0008/ - Relative imports for intra-package imports are highly discouraged. Always use the absolute package path for all imports. Even now that PEP 328 [7] is fully implemented in Python 2.5, its style of

Re: local import or not for django apps?

2008-05-30 Thread James Bennett
On Thu, May 29, 2008 at 4:06 PM, Milan Andric <[EMAIL PROTECTED]> wrote: > Anyone happen to have a strong opinion on this? Should django > applications use local imports or package based imports? Sorry if > this has been mulled over a million times. Applications should expect to live on the

Re: local import or not for django apps?

2008-05-29 Thread Gregor Müllegger
I also think that apps should live in somewhere in your python path. But if you can use Python 2.5 for your django projects you could also write imports in the following style. from . import spam This imports the module "spam" from the folder the sourcefile lives in. It's much cooler than

local import or not for django apps?

2008-05-29 Thread Milan Andric
http://code.google.com/p/django-survey/issues/detail?id=9=1 Anyone happen to have a strong opinion on this? Should django applications use local imports or package based imports? Sorry if this has been mulled over a million times. pasting conversation here: Comment 2 by doug.napoleone, Today