Models
Represent your data rows.
Definition
A Django Model is a Python class that maps to a database table. Each attribute of the model maps to a database column.
Workflow: Creating a model
Define a class that inherits from
models.Model.Add fields as class attributes.
Run
makemigrationsandmigrateto create the database table.Register the model in
admin.pyto manage it via the Django admin.