mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-30 23:04:59 +08:00
rename folder
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
---
|
||||
description: Specific guidelines for Django views, focusing on class-based vs. function-based views, error handling, and request handling.
|
||||
globs: **/views.py
|
||||
---
|
||||
- Use Django’s class-based views (CBVs) for more complex views; prefer function-based views (FBVs) for simpler logic.
|
||||
- Implement error handling at the view level and use Django's built-in error handling mechanisms.
|
||||
- Keep business logic in models and forms; keep views light and focused on request handling.
|
||||
Reference in New Issue
Block a user