3 ms·
Within a single app, could this not be done mith multiple model files, and multiple services files. I usually organize my apps by having a services layer betwe
by kumarvvr 8y ago
Within a single app, could this not be done mith multiple model files, and multiple services files.
I usually organize my apps by having a services layer between models and views, such that the view functions have little to no knowledge about the underlying models.
This, in place of nested apps, I have "upsmodels.py" and "upsservice.py" and the view functions handles routing logic.
- danpalmer 8y agoThat would indeed work, however given that one app can have ~20 nested apps at the first level, this might become tricky to manage. There's a lot to be said to having a directory with ~5 files in it that is all you need to keep in your head for a feature.