Refactordjango

Refactor Django/Python code to improve maintainability, readability, and adherence to best practices. Transforms fat views into Clean Architecture with Use Cases and Services. Applies SOLID principles, Clean Code patterns, Python 3.12+ features like type parameter syntax and @override decorator, Django 5+ patterns like GeneratedField and async views. Fixes N+1 queries, extracts business logic from views, separates Read/Write serializers, and converts exception-based error handling to explicit return values. Use when refactoring Django code, applying Clean Architecture, or modernizing legacy Django projects.

agusabas f90ef12 5 files · 32.5 KB Updated

File contents

agusabas/django-skills/tree/main/skills/refactordjango commit f90ef12a43

Frequently asked questions

npx skillmds@latest add agusabas/refactordjango