Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

what is more often used in practice: FBV or CBV?

I’m new to Django development, so I want to ask people who have more practice – what do they use more often? I’m of course assuming it’s CBV since it’s easier for others to read, but I’ll ask anyway.

thanks in advance for your reply

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

My opinion of ( FBV or CBV )

=> if I want to create only web API’s then I prefer CBV

But,

=> I want to work with Django Templates and then use FBV, but it depends on and requirements because sometimes I feel the need only simple CRUD Operation then I prefer CBV not to require more validation or logic

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading