Question: What is the difference between class - based and function - based views in Django? Question 3 options: 1 ) A class - based view

What is the difference between class-based and function-based views in Django?
Question 3 options:
1)
A class-based view provides more flexibility and code reusability, while a function-based view is simpler and easier to use
2)
A class-based view is written in Python, while a function-based view is written in JavaScript
3)
There is no difference between a class-based view and a function-based view in Django

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!