Models:

In the model we explore a class that contains tables and collections in our database. Models are defined in the app/models.py

models.py

admin.py : register student at admin.py like below:

admin.py
Now we have to make migrations and migrate, after that open admin section.
migrattion

Now add some data into the student.

add data

Subscribe Now