Stats

821 Contributors: 40
2017-08-08
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook

Models

Download django eBook

Introduction

In the basic case, a model is Python class that maps to a single database table. The attributes of the class map to columns in the table and an instance of the class represents a row in database table. The models inherit from django.db.models.Model which provides a rich API for adding and filtering results from the database.

Create Your First Model

Related Examples