u/Asif1152

Should you use a Service Layer in Django, or just Custom QuerySets?
▲ 10 r/django

Should you use a Service Layer in Django, or just Custom QuerySets?

I've been reading two blog posts lately:

- [Against service layers in Django](https://www.b-list.org/weblog/2020/mar/16/no-service/) by James Bennett

- [Evolution of a Django Repository pattern](https://lukeplant.me.uk/blog/posts/evolution-of-a-django-repository-pattern/) by Luke Plant

Both argue that building a service/repository layer in Django is basically just reinventing QuerySet — poorly. Their suggestion: use Custom Managers and QuerySets instead, keep logic in model methods.

But I see a lot of Django projects (and even style guides like HackSoft's) that still recommend a service layer.

So what's your take?

- Do you use a service layer in your Django projects?

- Has it helped or caused pain over time?

- Or do you go with Custom QuerySets and model methods?

u/Asif1152 — 4 hours ago

Chrome extension to copy full Swagger UI endpoint details as Markdown

The copy feature available in Swagger UI only copies the endpoint URL. That’s why I built a Chrome extension that captures all the details of an endpoint and copies them in Markdown format.

You can even copy all endpoints under an entire tag with a single click. Since the output is in Markdown, it can be used to generate API documentation or pasted directly into ChatGPT, Claude AI, and other AI platforms for further processing.

Like: https://github.com/AsiF-Py/Swagger-UI-Copy-Full-Details-Endpoint-Extension

reddit.com
u/Asif1152 — 1 day ago