Skip to main content
Glama

Django Styleguide MCP Server

by dmmeteo
services.md•1 kB
## Services Services are where business logic lives. The service layer speaks the specific domain language of the software, can access the database & other resources & can interact with other parts of your system. Here's a very simple diagram, positioning the service layer in our Django apps: ![Service layer](https://user-images.githubusercontent.com/387867/134778130-be168592-b953-4b74-8588-a3dbaa0b6871.png) A service can be: - A simple function. - A class. - An entire module. - Whatever makes sense in your case. In most cases, a service can be simple function that: - Lives in `<your_app>/services.py` module. - Takes keyword-only arguments, unless it requires no or one argument. - Is type-annotated (even if you are not using [`mypy`](https://github.com/python/mypy) at the moment). - Interacts with the database, other resources & other parts of your system. - Does business logic - from simple model creation to complex cross-cutting concerns, to calling external services & tasks.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dmmeteo/django-styleguide-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server