Create a Model in Django

D
2 min readNov 23, 2021
Photo by Jan Antonin Kolar on Unsplash

A model in Django can be thought of as a table consisting of various types of values, names, numbers, true-false flags. These values help to store certain bits of information related to one another.

How do we create a model? Simple. There are 4 main steps. Firstly head over to your application and you will find a file called models.py. If this sounds confusing, an application is the folder that your models.py file is in.

--

--

D

An aspiring Robotics Researcher. I am currently in my 4th year of undergraduate studies. I am working on optimising the ROS navigation packages. Follow 4 more!