3 ms·
If you try to keep everything in one app, you'll have gigantic views.py, models.py, etc. Nobody wants to work with those. Also, a simple typo in those files ca
by funkydata 4y ago
If you try to keep everything in one app, you'll have gigantic views.py, models.py, etc.
Nobody wants to work with those. Also, a simple typo in those files can bring your whole system down and can make it hard to debug.
Apps, are a cheap (EXCEPT when you HAVE TO [but really, do you? Really?] move models between apps) way to keep YOU sane.
- cjohnson318 4y agoRight, no one wants to work on a 10k line view.py file. However, if you put everything into its own app, like I did, then you run into circular dependencies as your project gets closer to feature complete. So, the answer is somewhere in the middle. At the moment, I have about 20 apps, with 1 to 4 models per app, and 20% of all that is highly interdependent. I should have put the big, highly interdependent pieces in one app, and have the less connected pieces in separate, bare-bones crud-apps.