chore: Update Django version references from 5.2 to 6 across documentation and skills.
This commit is contained in:
parent
ea9ca80e54
commit
30daee0c7e
@ -12,7 +12,7 @@ Personal Claude Code configuration vault containing reusable skills, custom agen
|
||||
claude-vault/
|
||||
├── skills/ # Modular skills (SKILL.md files)
|
||||
│ ├── skill-creator/ # Meta-skill for generating new skills
|
||||
│ ├── django-model/ # lp-django-model: Django 5.2 models (league-planner)
|
||||
│ ├── django-model/ # lp-django-model: Django 6 models (league-planner)
|
||||
│ ├── drf-api/ # lp-drf-api: DRF endpoints with @api_view
|
||||
│ ├── celery-task/ # lp-celery-task: Celery 5.5 tasks
|
||||
│ ├── query-optimizer/ # lp-query-optimizer: N+1 fixes
|
||||
|
||||
@ -18,7 +18,7 @@ You are an expert Django documentation architect specializing in MkDocs-based do
|
||||
## Project Context
|
||||
|
||||
You are working within a Django-based sports league planning system. Key information:
|
||||
- Stack: Django 5.2, PostgreSQL/SQLite, Celery, Django REST Framework
|
||||
- Stack: Django 6, PostgreSQL/SQLite, Celery, Django REST Framework
|
||||
- View pattern: 4-file structure (views.py, views_func.py, views_crud.py, widgets.py)
|
||||
- API pattern: Function-based views with @api_view decorator (NO ViewSets)
|
||||
- Supported languages: English, German, French, Dutch, Korean, Spanish, DFB German, Arabic
|
||||
|
||||
@ -42,7 +42,7 @@ GlobalCountry → GlobalTeam → GlobalLocation (common)
|
||||
```
|
||||
|
||||
### Technologie-Stack
|
||||
- **Framework**: Django 5.2, Django REST Framework
|
||||
- **Framework**: Django 6, Django REST Framework
|
||||
- **Database**: PostgreSQL (prod) / SQLite (dev)
|
||||
- **Task Queue**: Celery mit Multi-Queue Support
|
||||
- **Solver**: PuLP / FICO Xpress (via Git Submodules)
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
- **State:** React Context, Zustand (bei Bedarf)
|
||||
|
||||
### Backend
|
||||
- **Framework:** Django 5.2+, Django REST Framework
|
||||
- **Framework:** Django 6, Django REST Framework
|
||||
- **Language:** Python 3.12+
|
||||
- **Task Queue:** Celery mit Redis
|
||||
- **Optimization:** PuLP, FICO Xpress
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
---
|
||||
name: lp-django-model
|
||||
description: Creates Django 5.2 models for league-planner with Fat Model pattern, custom managers, Meta indexes/constraints, and query optimization. Use when adding new models.
|
||||
description: Creates Django 6 models for league-planner with Fat Model pattern, custom managers, Meta indexes/constraints, and query optimization. Use when adding new models.
|
||||
argument-hint: <model-name> [fields...]
|
||||
allowed-tools: Read, Write, Edit, Glob, Grep
|
||||
---
|
||||
|
||||
# League-Planner Django Model Generator
|
||||
|
||||
Creates production-ready Django 5.2 models following the league-planner project patterns with Fat Models, custom managers, proper Meta configuration, and query optimization hints.
|
||||
Creates production-ready Django 6 models following the league-planner project patterns with Fat Models, custom managers, proper Meta configuration, and query optimization hints.
|
||||
|
||||
## When to Use
|
||||
|
||||
@ -223,7 +223,7 @@ class Meta:
|
||||
# Composite index for filtered queries
|
||||
models.Index(fields=['season', 'status', '-created_at']),
|
||||
|
||||
# Partial index (Django 5.2+)
|
||||
# Partial index
|
||||
models.Index(
|
||||
fields=['name'],
|
||||
condition=models.Q(is_active=True),
|
||||
@ -239,10 +239,10 @@ class Meta:
|
||||
]
|
||||
```
|
||||
|
||||
### Django 5.2 Features
|
||||
### Django 6 Features
|
||||
|
||||
```python
|
||||
# Composite Primary Keys (new in 5.2)
|
||||
# Composite Primary Keys
|
||||
from django.db.models import CompositePrimaryKey
|
||||
|
||||
class TeamMatch(models.Model):
|
||||
@ -389,6 +389,6 @@ After creating a model:
|
||||
3. Test with `python manage.py shell`:
|
||||
```python
|
||||
from scheduler.models import MyModel
|
||||
# Model should be auto-imported in Django 5.2 shell
|
||||
# Model should be auto-imported in Django 6 shell
|
||||
MyModel.objects.create(name='Test', season=season)
|
||||
```
|
||||
|
||||
@ -7,7 +7,7 @@ allowed-tools: Read, Write, Edit, Glob, Grep
|
||||
|
||||
# League-Planner Query Optimizer
|
||||
|
||||
Optimizes Django 5.2 ORM queries following league-planner patterns: proper relationship loading, avoiding N+1 queries, using bulk operations, and leveraging PostgreSQL-specific features.
|
||||
Optimizes Django 6 ORM queries following league-planner patterns: proper relationship loading, avoiding N+1 queries, using bulk operations, and leveraging PostgreSQL-specific features.
|
||||
|
||||
## When to Use
|
||||
|
||||
|
||||
@ -142,7 +142,7 @@ Wenn widersprüchliche Informationen vorliegen, gilt folgende Hierarchie:
|
||||
- **State:** React Context, Zustand (bei Bedarf)
|
||||
|
||||
### Backend
|
||||
- **Framework:** Django 5.2+, Django REST Framework
|
||||
- **Framework:** Django 6, Django REST Framework
|
||||
- **Language:** Python 3.12+
|
||||
- **Task Queue:** Celery mit Redis
|
||||
- **Optimization:** PuLP, FICO Xpress
|
||||
|
||||
@ -18,7 +18,7 @@ Spezialisiert auf das Django-basierte Liga-Planungssystem:
|
||||
|
||||
| Skill | Beschreibung | Invocation |
|
||||
|-------|--------------|------------|
|
||||
| **[django-model](./skills/django-model/SKILL.md)** | Django 5.2 Models mit Fat Model Pattern, Custom Managers | `/lp-django-model` |
|
||||
| **[django-model](./skills/django-model/SKILL.md)** | Django 6 Models mit Fat Model Pattern, Custom Managers | `/lp-django-model` |
|
||||
| **[drf-api](./skills/drf-api/SKILL.md)** | DRF API Endpoints mit @api_view, drf-spectacular | `/lp-drf-api` |
|
||||
| **[celery-task](./skills/celery-task/SKILL.md)** | Celery 5.5 Tasks mit AbortableTask, Progress Tracking | `/lp-celery-task` |
|
||||
| **[permissions](./skills/permissions/SKILL.md)** | Multi-Tier Permissions mit Decorators, Session-based Access | `/lp-permissions` |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user