Skip to content
Back to skills

Python Django

ASecurity

Django 기반 Python 백엔드 컨벤션

  • 13 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 28, 2026
ai-agentspythongodjangoapi

Works with

  • api

Security analysis

A100/100

Scanned May 28, 2026

npx -y skills add ggombee/code-forge --skill python-django --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python Django?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Python Django
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ggombee-python-django/badge)](https://www.skillsdirectory.com/skills/ggombee-python-django)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: python-django
description: Django 기반 Python 백엔드 컨벤션
---

# Django 컨벤션

## 프로젝트 구조

```
project/
├── config/          # settings, urls, wsgi, asgi
│   ├── settings/    # base.py, local.py, production.py 분리
│   └── urls.py
├── apps/            # 기능별 앱 모음
│   └── {app}/
│       ├── models.py
│       ├── views.py
│       ├── serializers.py   # DRF 사용 시
│       ├── urls.py
│       └── tests/
└── requirements/    # base.txt, local.txt, production.txt
```

## 네이밍 규칙

- 파일/모듈: `snake_case`
- 클래스(모델, 뷰, 시리얼라이저): `PascalCase`
- URL name: `{app}:{action}` 형식 (예: `users:detail`)
- 모델 필드: `snake_case`

## 에러 처리

- DRF 사용 시 `ValidationError`, `PermissionDenied`, `NotFound` 활용
- 커스텀 에러는 `apps/core/exceptions.py`에 정의
- `EXCEPTION_HANDLER` 설정으로 전역 에러 포맷 통일

## 테스트

- `pytest-django` + `factory_boy` 조합 권장
- `TestCase` 대신 `pytest` 스타일 선호
- 모델/시리얼라이저 단위 테스트 + API 통합 테스트 분리

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.