Skip to content

Commit d030ab8

Browse files
committed
Merge pull request realpython#352 from Jonathan-Steinmann/patch-1
update db.rst
2 parents 8203c10 + 5156f90 commit d030ab8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/scenarios/db.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,11 @@ to provide database access.
3333
It's based on the idea of `models <https://docs.djangoproject.com/en/1.3/#the-model-layer>`_, an abstraction that makes it easier to
3434
manipulate data in Python.
3535

36+
The basics:
37+
38+
- Each model is a Python class that subclasses django.db.models.Model.
39+
- Each attribute of the model represents a database field.
40+
- Django gives you an automatically-generated database-access API; see `Making queries <https://docs.djangoproject.com/en/dev/topics/db/queries/>`__.
41+
to provide database access.
42+
43+

0 commit comments

Comments
 (0)