What problem does it solve?
Replacing dj-rest-auth with django-modern-rest is not a drop-in swap: endpoint paths, payloads, token transports, and custom serializer side effects all change, and silent security regressions (lost cookie flags, weakened CSRF, dropped provisioning hooks) are easy to miss. This Skill provides a structured, flow-by-flow migration plan that preserves behavior and security posture.
Core Features & Use Cases
- Endpoint and settings mapping: Ships a reference table mapping every dj-rest-auth URL, REST_AUTH setting, serializer, and DRF auth class to its allauth headless endpoint or dmr equivalent.
- Security-preserving migration gates: Enforces explicit decisions on auth transport (session token, header JWT, cookie JWT, opaque token), cookie flags, and CSRF before any code is written.
- Side-effect recovery: Guides re-attaching custom serializer validation and side effects (provisioning, invites, billing) to allauth adapters and signals.
- Use Case: A Django project using dj-rest-auth with simplejwt cookie auth needs to move to django-modern-rest; the Skill walks through wiring allauth headless, rebuilding user-details as a typed dmr controller, and updating clients and tests flow by flow.
Quick Start
Use $dmr-from-dj-rest-auth to migrate my existing dj-rest-auth installation to django-modern-rest with allauth headless.