9.1 Introduction

We have our Django forms, and the templates to display the forms—it is time to build our views and URL patterns to put it all together.

Previously programmed views had a single goal: display information to the user. Views built with forms are more complicated, as the user must interact with the form and therefore with the view. The view must now display a form, accept data, and potentially display a form with errors.

We start by implementing views for the webpages meant to create objects. We then move on to webpages to update objects and finish with the pages meant to delete objects. By the end of Chapter 9, we will have fully implemented CRUD (create, read, update, delete) on our website.

Get Django Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.