Class Based Views and Function Based Views

What is the best one to use FBVs or CBVs because i don’t know when i can start study the CBVs can some one help me?

the summary:

  1. When in my Django learning journey i can Start learn CBVs?
  2. Which one the best for big project FBVs or CBVs?
  3. How i long they take to learn CBVs and where i can study it with all details?

Welcome @alanhasn !

The Official Django Tutorial introduces them, so you can start learning about them while you’re getting started. (And if you haven’t worked your way through that tutorial, you should - even if you’ve already been using Django.)

It’s not an “either / or” situation. You can use both as appropriate.

You can search the forum for more information about these choices.

For example, see:

(There are many other topics where this is discussed as well. This is just a sample.)

That’s up to you - but it helps a lot if you’re really familiar with Python classes and the MRO.

The two resources that I always suggest to people for helping to understand the CBVs are the Classy Class-Based View site and the CBV diagrams page.

2 Likes