Skip to main content
Glama
dmmeteo

Django Styleguide MCP Server

by dmmeteo
base-model.md608 B
### Base model It's a good idea to define a `BaseModel`, that you can inherit. Usually, fields like `created_at` and `updated_at` are perfect candidates to go into a `BaseModel`. Here's an example `BaseModel`: ```python from django.db import models from django.utils import timezone class BaseModel(models.Model): created_at = models.DateTimeField(db_index=True, default=timezone.now) updated_at = models.DateTimeField(auto_now=True) class Meta: abstract = True ``` Then, whenever you need a new model, just inherit `BaseModel`: ```python class SomeModel(BaseModel): pass ```

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