summaryrefslogtreecommitdiff
path: root/docs/ref/settings.txt
diff options
context:
space:
mode:
authorCaio Ariede <caio.ariede@gmail.com>2015-08-05 11:08:56 -0300
committerTim Graham <timograham@gmail.com>2015-08-07 09:33:17 -0400
commitec9004728ee136e3b7e2b7cd2610203e16b6ce9b (patch)
treebd3fd3d8c729e5e01fc3111696a7d4eaa56d85b0 /docs/ref/settings.txt
parent8656cfc4e01332426e5e4b78c20a4e9ec443b293 (diff)
Fixed #25175 -- Renamed the postgresql_psycopg2 database backend to postgresql.
Diffstat (limited to 'docs/ref/settings.txt')
-rw-r--r--docs/ref/settings.txt16
1 files changed, 10 insertions, 6 deletions
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index 1077b910f2..eccba53274 100644
--- a/docs/ref/settings.txt
+++ b/docs/ref/settings.txt
@@ -459,7 +459,7 @@ other database types. This example is for PostgreSQL::
DATABASES = {
'default': {
- 'ENGINE': 'django.db.backends.postgresql_psycopg2',
+ 'ENGINE': 'django.db.backends.postgresql',
'NAME': 'mydatabase',
'USER': 'mydatabaseuser',
'PASSWORD': 'mypassword',
@@ -500,14 +500,19 @@ Default: ``''`` (Empty string)
The database backend to use. The built-in database backends are:
-* ``'django.db.backends.postgresql_psycopg2'``
+* ``'django.db.backends.postgresql'``
* ``'django.db.backends.mysql'``
* ``'django.db.backends.sqlite3'``
* ``'django.db.backends.oracle'``
You can use a database backend that doesn't ship with Django by setting
-``ENGINE`` to a fully-qualified path (i.e.
-``mypackage.backends.whatever``).
+``ENGINE`` to a fully-qualified path (i.e. ``mypackage.backends.whatever``).
+
+.. versionchanged:: 1.9
+
+ The ``django.db.backends.postgresql`` backend is named
+ ``django.db.backends.postgresql_psycopg2`` in older releases. For backwards
+ compatibility, the old name still works in newer versions.
.. setting:: HOST
@@ -657,8 +662,7 @@ The character set encoding used to create the test database. The value of this
string is passed directly through to the database, so its format is
backend-specific.
-Supported for the PostgreSQL_ (``postgresql_psycopg2``) and MySQL_ (``mysql``)
-backends.
+Supported by the PostgreSQL_ (``postgresql``) and MySQL_ (``mysql``) backends.
.. _PostgreSQL: http://www.postgresql.org/docs/current/static/multibyte.html
.. _MySQL: http://dev.mysql.com/doc/refman/5.6/en/charset-database.html