Re: relative or absolute imports

2007-04-13 Thread Anders Olsson
Right, thanks for the clarification! I see now that it has been added to the tutorial as well, which is good: "In this tutorial, we'll create our poll app in the mysite directory, for simplicity. As a consequence, the app will be coupled to the project - that is, Python code within the poll app w

Re: relative or absolute imports

2007-04-13 Thread James Bennett
On 4/13/07, Anders Olsson <[EMAIL PROTECTED]> wrote: > portable and decoupled from the project where it is used. But doesn't > the project being the top level python package make it almost > impossible to move an app from a project to another without modifying > the import statements? If you insi

Re: relative or absolute imports

2007-04-13 Thread Anders Olsson
This is something I've found confusing ever since my first contact with django, reading the tutorial - all this emphasis on apps being portable and decoupled from the project where it is used. But doesn't the project being the top level python package make it almost impossible to move an app from

Re: relative or absolute imports

2007-04-12 Thread webograph
hi, as i read that pep, relative imports are not deprecated at all, they just will require a new syntax in 2.8. i advocate the use of relative imports, in cases like newforms as well as in "user-space" apps, due to the possibility of name changes: sooner or later, newforms will just be called for