Skip to content

Entries published on March 16, 2020

1 entry published on this date. See also: all entries published in March 2020, full archive.

Against service layers in Django

This post now has a followup.

Recently I’ve seen posts and questions pop up in a few places about a sort of “enterprise” Django style guide that’s been getting attention. There are a number of things I disagree with in that guide, but the big one, and the one people have mostly been asking about, is the recommendation to add a “service layer” to Django applications. The short version of my opinion on this is: it’s probably not what you want in Django apps.

The longer version follows below.

What is a service layer, anyway?

First it’s helpful to understand what’s meant …

Entry published March 16, 2020. Read full entry.