Learn Before
Concept

Django Models

In Django, all information about your data is stored in models. A model is the single, definitive source of information about your data. It contains the essential fields and behaviors of the data you’re storing. Generally, each model maps to a single database table.

The Basics:

  • Each model is a Python class that subclasses django.db.models.Model.
  • Each attribute of the model represents a database field.
  • With all of this, Django gives you an automatically-generated database-access API;

0

2

Updated 2021-03-01

Tags

Python Programming Language

Data Science

Related