I’m starting on my first large django project and have realized that the default directory structure isn’t going to work well.
I saw this question and answer and decided to implement something similar.
Large Django application layout
What do I need to do to make something like this work? How can I change where django looks for apps/modules?
Python works automatically with deep directory structures. That’s porbably you didn’t find any instructions on how to do it.Here are some instructions on how to get classes and models to work.
If you want to have a module in folder
yourproject/apps/firstappyou can just add it to INSTALLED_APPS by adding line'apps.firstapp',. You will have to add a__init__.pyfile to each of the directories so that they are recognized as python packages.When you import classes you can simply use
from yourproject.apps.firstapp.filename import yourclass.You should also make sure all template directories are listed in
TEMPLATE_DIRS.