summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-02-23 12:24:41 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-02-23 12:24:41 +0000
commit156cdcf92decdf18a87a1229ba4ef8da1e6972ab (patch)
treedd161e7e91ff4698bceebe64a47acba2abbf6cc7 /django/db/backends/postgresql
parent6b2f125b80807231e0a216c0193089f3a40f7253 (diff)
Fixed #12912 -- Placed the psycopg1-backed ``postgresql`` database backend on the deprecation path.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12510 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/postgresql')
-rw-r--r--django/db/backends/postgresql/base.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/django/db/backends/postgresql/base.py b/django/db/backends/postgresql/base.py
index 5681311a65..5352e9bff6 100644
--- a/django/db/backends/postgresql/base.py
+++ b/django/db/backends/postgresql/base.py
@@ -102,6 +102,12 @@ class DatabaseWrapper(BaseDatabaseWrapper):
def __init__(self, *args, **kwargs):
super(DatabaseWrapper, self).__init__(*args, **kwargs)
+ import warnings
+ warnings.warn(
+ 'The ``postgres`` backend has been deprecated. Use ``postgres_psycopg2`` instead.',
+ PendingDeprecationWarning
+ )
+
self.features = DatabaseFeatures()
self.ops = DatabaseOperations(self)
self.client = DatabaseClient(self)