diff options
Diffstat (limited to 'docs/topics/db')
| -rw-r--r-- | docs/topics/db/examples/many_to_many.txt | 4 | ||||
| -rw-r--r-- | docs/topics/db/examples/many_to_one.txt | 4 | ||||
| -rw-r--r-- | docs/topics/db/examples/one_to_one.txt | 4 | ||||
| -rw-r--r-- | docs/topics/db/index.txt | 1 | ||||
| -rw-r--r-- | docs/topics/db/tablespaces.txt | 8 |
5 files changed, 11 insertions, 10 deletions
diff --git a/docs/topics/db/examples/many_to_many.txt b/docs/topics/db/examples/many_to_many.txt index 4966ff9272..13c2b96c8f 100644 --- a/docs/topics/db/examples/many_to_many.txt +++ b/docs/topics/db/examples/many_to_many.txt @@ -1,6 +1,6 @@ -########################## +========================== Many-to-many relationships -########################## +========================== .. highlight:: pycon diff --git a/docs/topics/db/examples/many_to_one.txt b/docs/topics/db/examples/many_to_one.txt index 64f6ab1f1b..c57d996460 100644 --- a/docs/topics/db/examples/many_to_one.txt +++ b/docs/topics/db/examples/many_to_one.txt @@ -1,6 +1,6 @@ -######################### +========================= Many-to-one relationships -######################### +========================= To define a many-to-one relationship, use :class:`~django.db.models.ForeignKey`:: diff --git a/docs/topics/db/examples/one_to_one.txt b/docs/topics/db/examples/one_to_one.txt index 7e373a98e1..c3060d86bb 100644 --- a/docs/topics/db/examples/one_to_one.txt +++ b/docs/topics/db/examples/one_to_one.txt @@ -1,6 +1,6 @@ -######################## +======================== One-to-one relationships -######################## +======================== To define a one-to-one relationship, use :ref:`ref-onetoone`. diff --git a/docs/topics/db/index.txt b/docs/topics/db/index.txt index 5b45e36e7c..79624d7fdf 100644 --- a/docs/topics/db/index.txt +++ b/docs/topics/db/index.txt @@ -1,3 +1,4 @@ +==================== Models and databases ==================== diff --git a/docs/topics/db/tablespaces.txt b/docs/topics/db/tablespaces.txt index 8c60fd568e..6cda629254 100644 --- a/docs/topics/db/tablespaces.txt +++ b/docs/topics/db/tablespaces.txt @@ -14,7 +14,7 @@ A common paradigm for optimizing performance in database systems is the use of Declaring tablespaces for tables --------------------------------- +================================ A tablespace can be specified for the table generated by a model by supplying the :attr:`~django.db.models.Options.db_tablespace` option inside the model's @@ -27,7 +27,7 @@ a tablespace for the built-in Django apps and other applications whose code you cannot control. Declaring tablespaces for indexes ---------------------------------- +================================= You can pass the :attr:`~django.db.models.Field.db_tablespace` option to a ``Field`` constructor to specify an alternate tablespace for the ``Field``’s @@ -42,7 +42,7 @@ set :setting:`DEFAULT_INDEX_TABLESPACE`, the index is created in the same tablespace as the tables. An example ----------- +========== .. code-block:: python @@ -62,7 +62,7 @@ also generate an index, but no tablespace for it is specified, so it would be stored in the model tablespace ``tables`` by default. Database support ----------------- +================ PostgreSQL and Oracle support tablespaces. SQLite and MySQL don't. |
