BMAD-METHOD/.claude/rules/python-django-best-practice.../django-models.mdc

6 lines
334 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
description: Rules for Django models, emphasizing ORM usage, database interactions, and data validation.
globs: **/models.py
---
- Leverage Djangos ORM for database interactions; avoid raw SQL queries unless necessary for performance.
- Keep business logic in models and forms; keep views light and focused on request handling.