Master 1Password: vaults, Watchtower, passkeys, SSH agent, CLI, and family/team administration. Use when getting full value from 1Password personally or administering it for others.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Django guidance — project structure, ORM mastery, admin, auth, async views, and production deployment.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치 방법 보기설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
Django is Python's batteries-included web framework: ORM, admin, auth, migrations, and templating ship together with a strong opinion about project layout. That completeness is its superpower — teams move fast without assembling a stack — and its trap, when projects fight the framework instead of using it. This skill covers the Django way done well: fat models, thin views, the ORM's query behavior, and what to configure before going live.
select_related (FK joins) and prefetch_related (M2M/reverse FK) — they eliminate the N+1 queries that sink Django apps. Use .only()/.defer() and .values() to slim wide tables.sqlmigrate to inspect generated SQL, keep migrations small and reversible, and run them with zero-downtime patterns (add nullable column → backfill → add constraint).billing, users, orders), not by technical layer. Each app owns its models, views, and templates. Cross-app imports signal a missing shared app or a boundary violation.settings.py with environment overrides beats copy-pasted files. Validate required env vars at startup (django-environ or similar); fail fast on missing secrets.objects = OrderManager()) encapsulate query logic so views stay dumb; chainable QuerySet methods compose. Put "how we query X" in exactly one place.post_save/m2m_changed decouple side effects — and create invisible coupling when overused. Prefer explicit service calls; reserve signals for cross-app concerns (audit logs, cache invalidation).TestCase wraps each test in a transaction with fast rollback; use SimpleTestCase for non-DB tests. Prefer factories (factory_boy) over brittle JSON fixtures for test data.django.contrib before adding a dependency; it's maintained and already installed.Scaffold cleanly. django-admin startproject config . (project package named config, not the app name), then one app per domain. Split settings: settings/base.py, settings/prod.py.
Model the domain. Write models with managers/querysets encapsulating query logic; add indexes for every filtered/ordered field (db_index, Meta.indexes); prefer DecimalField for money, DateTimeField with timezone support on.
class Order(models.Model):
customer = models.ForeignKey(Customer, on_delete=models.PROTECT, related_name="orders")
status = models.CharField(max_length=20, choices=Status.choices, db_index=True)
total = models.DecimalField(max_digits=10, decimal_places=2)
created_at = models.DateTimeField(auto_now_add=True, db_index=True)
class Meta:
indexes = [models.Index(fields=["customer", "-created_at"])]
Build views + serializers. For APIs use DRF or Ninja; validate input with serializers, paginate every list endpoint, and throttle public ones.
ModelViewSet judiciously — explicit APIViews are clearer for non-CRUD behavior.Audit queries. Install django-debug-toolbar in dev; in CI, assert query counts on hot endpoints (assertNumQueries). Fix N+1s with select_related/prefetch_related before they ship.
Harden settings for prod. DEBUG=False, ALLOWED_HOSTS set, SECURE_SSL_REDIRECT, SESSION_COOKIE_SECURE, CSRF_COOKIE_SECURE, SECURE_HSTS_SECONDS; static files via WhiteNoise or a CDN; media on object storage, never local disk.
python manage.py check --deploy — Django's own production checklist catches the common misses.Configure the admin. list_display, list_filter, search_fields, readonly_fields for audit columns; override get_queryset with select_related for list pages; restrict sensitive models with custom permissions.
Add caching where it pays. Cache expensive querysets and rendered fragments; version cache keys on deploy; monitor hit rates — an unused cache is just complexity.
Deploy. Gunicorn/uvicorn workers behind a reverse proxy; run migrations as a separate deploy step (not in the web process); collect static at build time; back up the DB before migrating.
# settings/prod.py essentials
DEBUG = False
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS")
SECURE_HSTS_SECONDS = 31_536_000
SECURE_SSL_REDIRECT = True
SESSION_COOKIE_SECURE = CSRF_COOKIE_SECURE = True
DEBUG=True in production — leaks tracebacks, env details, and enables the debug toolbar attack surface.USE_TZ=True and store UTC; convert at the presentation edge only.CONN_MAX_AGE — opening a new DB connection per request adds latency; use persistent connections plus a pooler (PgBouncer) in production.아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
Master 1Password: vaults, Watchtower, passkeys, SSH agent, CLI, and family/team administration. Use when getting full value from 1Password personally or administering it for others.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Create 3D visuals with modeling, texturing, lighting, rendering, and optimization for web and product.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Create 3D web experiences: scene setup, models, materials, lighting, animation, scroll-driven scenes, and performance budgets. Use when adding 3D to websites beyond basic demos.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Writing abstracts that get papers read — structured content, the 5-sentence core, and journal-specific constraints.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Learn effectively from courses and academies: choosing programs, studying actively, and converting courses into skills. Use when investing time/money in structured learning.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Audit designs for accessibility with WCAG checklists covering color, type, focus, motion, and content.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.