Tech Insights· forum.djangoproject.com
Where to put business logic in Django? Discussion:
From forum.djangoproject.com
I’m curious if there’s any consensus here. Obvious answers are: Models/Managers - make them FAT is often cited as the default but can have performance issues and in large projects become unwieldy to reason about Views - obvious place to put them but can also grow too large and not performant, plus do you really want all the calculations done on the fly? Templates - not advised to put much logic in here, bad for performance, hard to reason about Separate Python file…this is what I see larger si...
Shared by
- Codearchitecture
- Django



