Toolverse
All skills

django-patterns

by affaan-m

Django架构模式、使用DRF的REST API设计、ORM最佳实践、缓存、信号、中间件以及生产级Django应用程序。

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
affaan-m
Category
Backend
Views
4

About this skill

Django架构模式、使用DRF的REST API设计、ORM最佳实践、缓存、信号、中间件以及生产级Django应用程序。

How to use

  1. Zapoznaj się z rekomendowaną strukturą projektu: katalog config/ zawiera ustawienia podzielone na base.py (wspólne), development.py, production.py i test.py. Katalog apps/ grupuje aplikacje Django (users, products itp.) z modelami, widokami, serializerami i testami.

  2. Skonfiguruj ustawienia bazowe w config/settings/base.py: zdefiniuj SECRET_KEY, INSTALLED_APPS (w tym rest_framework, corsheaders), MIDDLEWARE (w tym WhiteNoiseMiddleware do serwowania statycznych plików) i ROOT_URLCONF.

  3. Utwórz osobne pliki ustawień dla każdego środowiska (development.py, production.py, test.py), które dziedziczą z base.py i nadpisują wartości specyficzne dla danego środowiska (DEBUG, ALLOWED_HOSTS, bazy danych).

  4. W każdej aplikacji Django ustrukturyzuj pliki: models.py dla modeli ORM, serializers.py dla serializerów REST Framework, views.py dla logiki biznesowej, permissions.py dla kontroli dostępu, filters.py dla filtrowania, services.py dla dodatkowych usług, oraz tests/ dla testów.

  5. Implementuj cache'owanie, sygnały Django i custom middleware'y zgodnie z dokumentacją, aby zoptymalizować wydajność i utrzymać czystość kodu.

  6. Wybierz odpowiednie ustawienia dla środowiska produkcyjnego (wyłącz DEBUG, ustaw ALLOWED_HOSTS, skonfiguruj bazę danych) i wdrażaj aplikację przy użyciu WSGI lub ASGI.

Related skills

dotnet-backend

by anton-abyzov

.NET/C# backend developer for ASP.NET Core APIs with Entity Framework Core. Builds REST APIs, minimal APIs, gRPC services, authentication with Identity/JWT, authorization, database operations, background services, SignalR real-time features. Activates for: .NET, C#, ASP.NET

Backend
92296

youtube-transcribe-skill

by feiskyer

Extract subtitles/transcripts from a YouTube video URL and save as a local file. Use when you need to extract subtitles from a YouTube video.

Backend
24178

supabase-developer

by daffy0208

Build full-stack applications with Supabase (PostgreSQL, Auth, Storage, Real-time, Edge Functions). Use when implementing authentication, database design with RLS, file storage, real-time features, or serverless functions.

Backend
78170

stripe-integration

by wshobson

Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.

Backend
40147

context-optimizer

by openclaw

Advanced context management with auto-compaction and dynamic context optimization for DeepSeek's 64k context window. Features intelligent compaction (merging, summarizing, extracting), query-aware relevance scoring, and hierarchical memory system with context archive. Logs

Backend
2964

travel-planner

by ailabs-393

This skill should be used whenever users need help planning trips, creating travel itineraries, managing travel budgets, or seeking destination advice. On first use, collects comprehensive travel preferences including budget level, travel style, interests, and dietary

Backend
4379