summaryrefslogtreecommitdiff
path: root/docs/ref
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
parent8656cfc4e01332426e5e4b78c20a4e9ec443b293 (diff)
Fixed #25175 -- Renamed the postgresql_psycopg2 database backend to postgresql.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/querysets.txt2
-rw-r--r--docs/ref/settings.txt16
-rw-r--r--docs/ref/signals.txt2
3 files changed, 12 insertions, 8 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index f21887c6bd..47a75ddfc6 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -1512,7 +1512,7 @@ make the call non-blocking. If a conflicting lock is already acquired by
another transaction, :exc:`~django.db.DatabaseError` will be raised when the
queryset is evaluated.
-Currently, the ``postgresql_psycopg2``, ``oracle``, and ``mysql`` database
+Currently, the ``postgresql``, ``oracle``, and ``mysql`` database
backends support ``select_for_update()``. However, MySQL has no support for the
``nowait`` argument. Obviously, users of external third-party backends should
check with their backend's documentation for specifics in those cases.
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
diff --git a/docs/ref/signals.txt b/docs/ref/signals.txt
index 1636fee9fc..aa85904843 100644
--- a/docs/ref/signals.txt
+++ b/docs/ref/signals.txt
@@ -625,7 +625,7 @@ Arguments sent with this signal:
``sender``
The database wrapper class -- i.e.
- ``django.db.backends.postgresql_psycopg2.DatabaseWrapper`` or
+ ``django.db.backends.postgresql.DatabaseWrapper`` or
``django.db.backends.mysql.DatabaseWrapper``, etc.
``connection``