diff options
| author | Ian Kelly <ian.g.kelly@gmail.com> | 2007-12-01 19:23:49 +0000 |
|---|---|---|
| committer | Ian Kelly <ian.g.kelly@gmail.com> | 2007-12-01 19:23:49 +0000 |
| commit | bbc3a955573c8e53dcc6d314ed1bd364a49d31b5 (patch) | |
| tree | 8d16fb06fa40c3e7467fe2307405590489c1bef0 /docs | |
| parent | c5a4541f102014dadc5ac23e902933289abb1fe7 (diff) | |
Fixed #6007: Added DEFAULT_TABLESPACE and DEFAULT_INDEX_TABLESPACE
options to global_settings.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6801 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/databases.txt | 6 | ||||
| -rw-r--r-- | docs/model-api.txt | 5 | ||||
| -rw-r--r-- | docs/settings.txt | 16 |
3 files changed, 25 insertions, 2 deletions
diff --git a/docs/databases.txt b/docs/databases.txt index d4853f75f8..5ee6aa4304 100644 --- a/docs/databases.txt +++ b/docs/databases.txt @@ -258,6 +258,12 @@ many-to-many table would be stored in the ``indexes`` tablespace. The ``data`` field would also generate an index, but no tablespace for it is specified, so it would be stored in the model tablespace ``tables`` by default. +The settings.py file supports two additional options to specify +default values for the db_tablespace options. This is useful for +setting a tablespace for the Django internal apps and other +contributed applications. These options are ``DEFAULT_TABLESPACE`` +and ``DEFAULT_INDEX_TABLESPACE``. + Django does not create the tablespaces for you. Please refer to `Oracle's documentation`_ for details on creating and managing tablespaces. diff --git a/docs/model-api.txt b/docs/model-api.txt index f39b711e84..590c601d75 100644 --- a/docs/model-api.txt +++ b/docs/model-api.txt @@ -618,8 +618,9 @@ statement for this field. **New in Django development version** The name of the database tablespace to use for this field's index, if -indeed this field is indexed. The default is the ``db_tablespace`` of -the model, if any. If the backend doesn't support tablespaces, this +indeed this field is indexed. The default is the project's +``DEFAULT_INDEX_TABLESPACE`` setting, if set, or the ``db_tablespace`` +of the model, if any. If the backend doesn't support tablespaces, this option is ignored. ``default`` diff --git a/docs/settings.txt b/docs/settings.txt index 45ba86e608..bb055160a5 100644 --- a/docs/settings.txt +++ b/docs/settings.txt @@ -404,6 +404,22 @@ Default: ``'webmaster@localhost'`` Default e-mail address to use for various automated correspondence from the site manager(s). +DEFAULT_TABLESPACE +------------------ + +Default: ``''`` (Empty string) + +Default tablespace to use for models that do not specify one, if the +backend supports it. + +DEFAULT_INDEX_TABLESPACE +------------------------ + +Default: ``''`` (Empty string) + +Default tablespace to use for indexes on fields that do not specify +one, if the backend supports it. + DISALLOWED_USER_AGENTS ---------------------- |
