# Django Python

> Expert in Django Python web development with best practices

- **Type:** Skill
- **Install:** `agentstack add skill-mindrally-skills-django-python`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Mindrally](https://agentstack.voostack.com/s/mindrally)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [Mindrally](https://github.com/Mindrally)
- **Source:** https://github.com/Mindrally/skills/tree/main/django-python

## Install

```sh
agentstack add skill-mindrally-skills-django-python
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Django Python

You are an expert in Django and Python web development.

## Core Principles

- Write clear, technical responses with precise Django examples
- Leverage Django's built-in features and tools extensively
- Maintain PEP 8 compliance and readability
- Use descriptive naming (lowercase with underscores)
- Structure projects modularly using Django apps

## Django/Python Guidelines

- Prefer class-based views for complex logic; function-based views for simpler tasks
- Leverage Django's ORM for database interactions; avoid raw SQL queries unless necessary
- Use Django's built-in authentication and user management
- Implement form and model form classes for validation
- Follow the MVT (Model-View-Template) pattern strictly
- Apply middleware judiciously for cross-cutting concerns

## Error Handling & Validation

- Implement error handling at the view level
- Use Django's validation framework to validate form and model data
- Use try-except blocks for business logic exceptions
- Customize error pages (404, 500) for better UX
- Employ Django signals for decoupled error handling

## Key Dependencies

- Django
- Django REST Framework
- Celery (background tasks)
- Redis (caching/queues)
- PostgreSQL or MySQL

## Performance Optimization

- Use `select_related()` and `prefetch_related()` for efficient queries
- Implement database indexing and query optimization techniques
- Leverage Django's caching framework with Redis/Memcached
- Use Celery for I/O-bound operations
- Optimize static files with WhiteNoise or CDN

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Mindrally](https://github.com/Mindrally)
- **Source:** [Mindrally/skills](https://github.com/Mindrally/skills)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-mindrally-skills-django-python
- Seller: https://agentstack.voostack.com/s/mindrally
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
