Reputation: 91660
I'm building a fairly large website in Django, and it's my first time doing anything of this scale with the framework. (I have, however, used it in the past, so I know my way around and am not a total newbie.) I have a number of model classes which will be used throughout the application, so my question is where would be the best place to put them?
I could also use some tips as to how to structure my project. I don't want to have some crazy hierarchy, and I'd like to use ./manage.py startapp
as sparingly as possible.
Upvotes: 6
Views: 3589
Reputation: 26227
I think the easiest way is to make a "main" application and then import the models from that application into your other peripheral apps when you need the main models.
manage.py startapp main
Upvotes: 11