Install any skill in seconds. Free to start, no credit card required.
Get Started Free →xu-xiang/django-patterns
Django 架构模式、使用 DRF 的 REST API 设计、ORM 最佳实践、缓存、信号(Signals)、中间件(Middleware)以及生产级 Django 应用。
Passed 18 of 23 test cases with the skill, and 18 of 23 without it.
1 fixed17 passed either way4 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
In a Django application processing shopping cart checkouts, where should multi-step database operations (order creation, item creation, stock reduction) be placed to keep views slim and guarantee atomicity?
| Checked | Without skill | With skill |
|---|---|---|
| Encapsulates order creation logic inside a dedicated service class method. | Missed | Passed |
| Wraps multi-step database modifications using django.db.transaction.atomic. | Passed | Passed |
The instructions your model reads when the skill loads.
适用于可扩展、可维护应用程序的生产级 Django 架构模式。
myproject/
├── config/
│ ├── __init__.py
│ ├── settings/
│ │ ├── __init__.py
│ │ ├── base.py # Base settings
│ │ ├── development.py # Dev settings
│ │ ├── production.py # Production settings
│ │ └── test.py # Test settings
│ ├── urls.py
│ ├── wsgi.py
│ └── asgi.py
├── manage.py
└── apps/
├── __init__.py
├── users/
│ ├── __init__.py
│ ├── models.py
│ ├── views.py
│ ├── serializers.py
│ ├── urls.py
│ ├── permissions.py
│ ├── filters.py
test cases passed, vs 18 / 23 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.