Skip to content
All lessons

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

Read on forum.djangoproject.com
  • Codearchitecture
  • Django

Book a call

Lessons like this one
shape how we build.

Tell us what you’re building. In one call, we’ll show you how our team would approach it.

Tell us what you’re building, and we’ll show you how we’d approach it.

Still prefer the good old email? Contact us