Elektrine lite

← Feed

@carlton@chaos.social

Post #2212951

2026-04-12 09:28 UTC

How I approach decoupling business logic from the Django ORM. https://buttondown.com/carlton/archive/decoupling-your-business-logic-from-the-django-orm/ #django #TheStackReport

Replies (3)

  • @carlton@chaos.social I thought this was a nicely nuanced and thoughtful article before even seeing the first attrs class, let alone cattrs ;)

    Open ##2519535

  • @carlton@chaos.social disregarding specific libraries, there's definitely a rich discussion to be had around application architecture and complexity management here, and I think your entry here adds to it thoughtfully. I personally fall into the camp where I'll happily put the business logic meat into the "view", eschewing a service layer until the codepath needs to be shared. I have folks at $DAYJOB arguing otherwise, and not without merit.

    Open ##2519536

  • @hynek@mastodon.social 2026-04-12 10:55

    @carlton@chaos.social ohh what a timing! I’m giving my design pressure talk next week in Texas so it’s great to finally have some design content for Djagno, too!

    Open ##2519544