2016-01-03 18:56:22 +08:00
|
|
|
====================
|
2008-08-24 06:25:40 +08:00
|
|
|
Models and databases
|
|
|
|
====================
|
|
|
|
|
2011-03-04 03:31:10 +08:00
|
|
|
.. module:: django.db
|
|
|
|
|
2008-08-24 06:25:40 +08:00
|
|
|
A model is the single, definitive source of data 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.
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
|
|
models
|
|
|
|
queries
|
2009-01-15 19:06:34 +08:00
|
|
|
aggregation
|
2015-06-01 05:45:03 +08:00
|
|
|
search
|
2008-08-24 06:25:40 +08:00
|
|
|
managers
|
|
|
|
sql
|
|
|
|
transactions
|
2009-12-22 23:18:51 +08:00
|
|
|
multi-db
|
2011-10-15 05:49:43 +08:00
|
|
|
tablespaces
|
2010-01-16 11:13:16 +08:00
|
|
|
optimization
|
2017-09-22 00:13:09 +08:00
|
|
|
instrumentation
|
2012-03-15 06:16:46 +08:00
|
|
|
examples/index
|