Django Installed Apps Location


I am an experienced PHP programmer using Django for the first time, and I think it is incredible!

I have a project that has a lot of apps, so I wanted to group them in an apps folder.

So the structure of the project is:


Then in Django settings I have put this:


This does not seem to work?

Any ideas on how you can put all your apps into a seprate folder and not in the project root?

Many thanks.

4/8/2009 1:20:31 PM

Accepted Answer

Make sure that the '' file is in your apps directory, if it's not there it won't be recognized as part of the package.

So each of the folders here should have '' file in it. (empty is fine).


Then as long as your root 'module' folder is in your PYTHONPATH you'll be able to import from your apps.

Here's the documentation regarding the python search path for your reading pleasure:

And a nice simple explanation of what file is for:

2/4/2009 1:54:27 PM

As long as your apps are in your PYTHONPATH, everything should work. Try setting that environment variable to the folder containing your apps.


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow