Implement Django Feature
Installation
SKILL.md
Skill: Implement Django Feature
1. Domain Modeling (The Foundation)
Always start here.
- Create/Update
models.py. - Enforce
id = models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True). - Add
created_atandupdated_at(TimeStamped). - Define
__str__method.
2. Business Logic Layer
Do not put heavy logic in Views.
- Create a
services.pyorselectors.pyin the app. selectors.py: For fetching data (QuerySets, filtering).services.py: For writing data (Transactions, complex creates).