1.

What is CRUD?

Answer»

The most common task in web application development is to write CREATE, READ, update and delete functionality (CRUD) for each table. It refers to the set of common operations that are used in web applications to interact with data from the database. It provides a CRUD interface that allows users to create, read, update or delete data in the application database.

DJANGO helps us with its simplified IMPLEMENTATION for CRUD operations using Function-Based views and class-based Views.

  • Function- based views are simple to implement and easy to read but they are hard to customize or extend the functionality. Code reuse is not allowed and so there is repetitiveness.
  • Class-based views - In no time CRUD operations can be implemented using CBVs. As the model evolves changes would be reflected automatically in CBVs. CBVs are easily extendable and allow code reuse. Django has built-in generic CBVs which makes it easy to use.



Discussion

No Comment Found