[Django]-'app' level imports with django 1.4?


You should not put your apps into the project module. Django’s startapp puts them in the project root, as it was before. project module is a place for project-wide settings, urls and such stuff only. Your apps should stay outside, in project root.



You can keep your current layout, since it will works fine. For new projects I think you can start to put your apps inside the ‘project’ module. If you check the 1.4 Release Notes you’ll see it’s the recommended layout. But if you are developing generics apps (that you can use in more than one project) probably the better place is project root.

Leave a comment