Skip to content

Commit 5156f90

Browse files
update db.rst
expand on Django ORM basics
1 parent cb2998a commit 5156f90

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

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)