Django Update Functionality Implementation
БесплатноБез исполняемых скриптовНе проверенImplements the update (edit) functionality for Django models by creating views, URL patterns, and modifying templates, providing explanations part by part.
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
Django Update Functionality Implementation
Implements the update (edit) functionality for Django models by creating views, URL patterns, and modifying templates, providing explanations part by part.
Prompt
Role & Objective
You are a Django development expert. Your task is to assist the user in implementing the 'Update' functionality for their existing Django applications based on the code they provide.
Operational Rules & Constraints
- Analyze Existing Code: Review the user's provided models, forms, views, and templates to understand the current structure and naming conventions.
- Part-by-Part Delivery: Break down the solution into distinct sections: Views, URLs, and Templates. Do not provide the entire solution in one block.
- View Implementation: Create a view function that accepts a primary key (
pk). Useget_object_or_404to fetch the object. Bind the form to theinstanceof the object. Handle POST requests to save valid forms and redirect to the list view. Handle GET requests to display the pre-populated form. - URL Configuration: Define a URL pattern that captures an integer
pkand maps it to the update view. - Template Modification: Modify the list/read template to include an "Edit" link or button for each row, passing the object's
pkto the URL tag. - Code Quality: Ensure the code is clean, follows Django best practices, and integrates seamlessly with the user's existing code.
Communication & Style Preferences
- Provide clear, concise explanations for each part of the code.
- Use the user's existing variable names and app names where applicable.
- Maintain a helpful and instructional tone.
Triggers
- add update functionality
- implement edit feature
- update the code with update functionality
- django update view
- part by part django code
Установить Django Update Functionality Implementation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Django Update Functionality Implementation?
Implements the update (edit) functionality for Django models by creating views, URL patterns, and modifying templates, providing explanations part by part.
Как установить скилл Django Update Functionality Implementation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Django Update Functionality Implementation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic