Search⌘ K
AI Features

Creating the House and Checker Models

Explore how to design and implement the House and Checker models in a Django backend app for real estate. Understand field choices and model relationships to correctly represent houses and their users.

Creating the House model

So far, we have dealt with the project and application creation, various installations, connections, and setups. We are ready to progress now that we have our web application and Docker container operational. Let’s start adding the functionalities we wish to see in the application.

When adding functionalities to our application, we have to first think about what we’re building and the features it should have. In this course, we’re building a real estate application with a house collection.

Secondly, we have to figure out what information about the houses we want to store or display in the app, how the two relate to each other, and what clickable events should be provided for our web application users. This process is known as modeling.

Keeping all the considerations we discussed above in mind, we want the House model of our real estate web application to have the following: ...