u/Puzzled_Cod_9192

▲ 0 r/django

which to choose for creating drf views?

im confused which one to learn from following for django drf views:

View Type Class Best For Industry Usage
Function-Based Views api_view Small APIs, beginners ⭐⭐☆☆☆
APIView APIView Custom logic ⭐⭐⭐⭐☆
GenericAPIView + Mixins GenericAPIView + Mixins CRUD with customization ⭐⭐⭐⭐☆
Generic Class-Based Views ListCreateAPIView, RetrieveUpdateDestroyAPIView, etc. Standard CRUD ⭐⭐⭐⭐⭐
ViewSets + Router ModelViewSet, ReadOnlyModelViewSet RESTful APIs ⭐⭐⭐⭐⭐

above response is given by chatgpt but i need opinion of experienced developers

reddit.com
u/Puzzled_Cod_9192 — 11 days ago
▲ 8 r/django

Complete Beginner Learning Django – Need Guidance on What to Focus On

Hi everyone,

I'm a complete beginner learning Django and I'm feeling a bit overwhelmed by the number of concepts and different ways to do the same thing.

My goal is to become job-ready as a Django developer and build real-world projects, but I'm confused about what I should learn first and what is actually used in the industry.

So far, I've started learning:

  • Django project structure
  • MVT architecture
  • Models and ORM
  • Function-Based Views (FBV)
  • Authentication with sessions
  • CRUD applications

Some of the topics I'm unsure about are:

  • FBV vs CBV vs Generic Views — which should I focus on and when to use which one among them?
  • Default User vs AbstractUser vs AbstractBaseUser
  • When to use signals
  • Query optimization (select_related, prefetch_related)
  • Caching
  • Celery and background tasks
  • Django REST Framework (when should I start learning it?)
  • Testing
  • Deployment

I'd appreciate advice from experienced Django developers:

  1. What roadmap would you recommend for a beginner?
  2. Which Django concepts are most important for junior/fresher interviews?
  3. What projects helped you learn Django effectively?
  4. Are there any common mistakes beginners make that I should avoid?

Any tips, resources, or personal experiences would be greatly appreciated.

Thank you!

reddit.com
u/Puzzled_Cod_9192 — 19 days ago