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