About django
A Django development skill for building and configuring Python web applications, covering project setup, models, migrations, views, routes, templates, and admin. It also provides guidance on application structure, performance, security, and permissions.
Key features
- 01Sets up Django projects and apps
- 02Guides models and migrations
- 03Covers views, routes, and templates
- 04Explains admin registration
- 05Advises on security and permissions
Use cases
- 01Starting a Django web application
- 02Adding models and database migrations
- 03Configuring views, routing, and admin
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ full-stack-skills/ python-skills --skill djangoAfter installing, type/djangoin Claude Code to confirm it loaded.
Bundled filesagents/openai.yamlLICENSE.txt
Details
From the project READMEWhen to use this skill
Use this skill whenever the user wants to:
- 用 Django 创建 Web 应用、ORM、admin、视图与路由
- 配置项目、应用、模型、迁移与部署
How to use this skill
- 起步:django-admin startproject;startapp、settings、INSTALLED_APPS。
- 核心:models、makemigrations/migrate;views、urls、templates;admin 注册。
- 参考:https://docs.djangoproject.com/
Best Practices
- 一应用一职责;模型规范化与索引。
- 视图瘦、逻辑在 service 或 model 层;安全与 CSRF、权限。
Keywords
django, ORM, MTV, 迁移, Python Web
Comments
Markdown supported