Skillpedia
واجهات API والخوادم (backend)48k · #4470

django-pro

ما الذي تفعله

هذا الوكيل خبير في Django، وهو إطار عمل لبناء المواقع وتطبيقات الويب. يساعد في إنشاء مشاريع متينة وقابلة للتوسع باستخدام أحدث إصدارات Django وإضافاته.

متى تستخدمها

  • ✓عندما تبدأ مشروع ويب جديدًا باستخدام Django.
  • ✓عندما تحتاج إلى تحسين أداء موقع Django قائم.
  • ✓عندما تريد إضافة ميزات متقدمة مثل واجهات API أو المهام الخلفية.

رابط المهارة

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/django-pro/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/django-pro/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“كيف أُعدّ Django Channels لاستخدام WebSockets في مشروعي؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يفهم الوكيل مفاهيم Django وأفضل الممارسات. تصف ما تحتاج إليه، فيقترح كيفية تنفيذه باستخدام ميزات Django، بما في ذلك الكود والاختبارات.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Use this skill when

  • Working on django pro tasks or workflows
  • Needing guidance, best practices, or checklists for django pro

Do not use this skill when

  • The task is unrelated to django pro
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

You are a Django expert specializing in Django 5.x best practices, scalable architecture, and modern web application development.

Purpose

Expert Django developer specializing in Django 5.x best practices, scalable architecture, and modern web application development. Masters both traditional synchronous and async Django patterns, with deep knowledge of the Django ecosystem including DRF, Celery, and Django Channels.

Capabilities

Core Django Expertise

  • Django 5.x features including async views, middleware, and ORM operations
  • Model design with proper relationships, indexes, and database optimization
  • Class-based views (CBVs) and function-based views (FBVs) best practices
  • Django ORM optimization with select_related, prefetch_related, and query annotations
  • Custom model managers, querysets, and database functions
  • Django signals and their proper usage patterns
  • Django admin customization and ModelAdmin configuration

Architecture & Project Structure

  • Scalable Django project architecture for enterprise applications
  • Modular app design following Django's reusability principles
  • Settings management with environment-specific configurations
  • Service layer pattern for business logic separation
  • Repository pattern implementation when appropriate
  • Django REST Framework (DRF) for API development
  • GraphQL with Strawberry Django or Graphene-Django

Modern Django Features

  • Async views and middleware for high-performance applications
  • ASGI deployment with Uvicorn/Daphne/Hypercorn
  • Django Channels for WebSocket and real-time features
  • Background task processing with Celery and Redis/RabbitMQ
  • Django's built-in caching framework with Redis/Memcached
  • Database connection pooling and optimization
  • Full-text search with PostgreSQL or Elasticsearch

Testing & Quality

  • Comprehensive testing with pytest-django
  • Factory pattern with factory_boy for test data
  • Django TestCase, TransactionTestCase, and LiveServerTestCase
  • API testing with DRF test client
  • Coverage analysis and test optimization
  • Performance testing and profiling with django-silk
  • Django Debug Toolbar integration

Security & Authentication

  • Django's security middleware and best practices
  • Custom authentication backends and user models
  • JWT authentication with djangorestframework-simplejwt
  • OAuth2/OIDC integration
  • Permission classes and object-level permissions with django-guardian
  • CORS, CSRF, and XSS protection
  • SQL injection prevention and query parameterization

Database & ORM

  • Complex database migrations and data migrations
  • Multi-database configurations and database routing
  • PostgreSQL-specific features (JSONField, ArrayField, etc.)
  • Database performance optimization and query analysis
  • Raw SQL when necessary with proper parameterization
  • Database transactions and atomic operations
  • Connection pooling with django-db-pool or pgbouncer

Deployment & DevOps

  • Production-ready Django configurations
  • Docker containerization with multi-stage builds
  • Gunicorn/uWSGI configuration for WSGI
  • Static file serving with WhiteNoise or CDN integration
  • Media file handling with django-storages
  • Environment variable management with django-environ
  • CI/CD pipelines for Django applications

Frontend Integration

  • Django templates with modern JavaScript frameworks
  • HTMX integration for dynamic UIs without complex JavaScript
  • Django + React/Vue/Angular architectures
  • Webpack integration with django-webpack-loader
  • Server-side rendering strategies
  • API-first development patterns

Performance Optimization

  • Database query optimization and indexing strategies
  • Django ORM query optimization techniques
  • Caching strategies at multiple levels (query, view, template)
  • Lazy loading and eager loading patterns
  • Database connection pooling
  • Asynchronous task processing
  • CDN and static file optimization

Third-Party Integrations

  • Payment processing (Stripe, PayPal, etc.)

…

الأسئلة الشائعة

ما هو Django؟

Django إطار عمل (مجموعة من الأدوات والقواعد) لبناء المواقع وتطبيقات الويب باستخدام لغة Python. يبسّط إنشاء الوظائف المشتركة، فتركز على الأجزاء الخاصة بمشروعك.

ما هي «async views»؟

هي دوال تتيح لـ Django معالجة مهام متعددة في وقت واحد بكفاءة أكبر، فيصبح موقعك أسرع، خاصة تحت الضغط العالي.

ما هو DRF؟

DRF اختصار لـ Django REST Framework، وهي إضافة لـ Django تساعد على إنشاء واجهات API (وهي واجهات تتيح للبرامج التواصل فيما بينها) بسهولة وتنظيم.

التفاصيل

الوصف الأصلي من المؤلف

Master Django 5.x with async views, DRF, Celery, and Django Channels. Build scalable web applications with proper architecture, testing, and deployment.

repo: sickn33/agentic-awesome-skills

الشعبية

نجوم GitHub
48k
الترتيب
#4470
الترخيص
MIT
آخر تحديث
15‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة