'app' level imports with django 1.4?

django, python

Solution

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.

Problem

I have a django app that I developed in the 1.2 days. I'm now trying to port it over to the 1.4 project format. The old way my project was set up was as follows: ``` django_project/ settings.py manage.py urls.py app1/ app2/ app3/ ``` I'm changing it to use the new manage.py and my directories look like this: ``` django_project/ manage.py project urls.py wsgi.py app1/ app2/ app3/ ``` The problem is that all over my code I import stuff like this: ``` from app1.models import SomeModel ``` which now gives me an import error. Doing this fixes it: ``` from project.app1.models import SomeModel ``` I really don't want to have to go all through my project to change all those imports. Is there something I'm missing? Is there an easier way? Or is this how you're supposed to do it?

Original source