diff options
Diffstat (limited to 'django/db/backends/postgresql/base.py')
| -rw-r--r-- | django/db/backends/postgresql/base.py | 6 |
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) |
