summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-01-25 09:23:04 -0500
committerGitHub <noreply@github.com>2017-01-25 09:23:04 -0500
commit3f0c4fe18fe9850bb2f56be138012add4b54873d (patch)
tree4a517a3a14366ac3394280224e401c21e8430840 /django
parentebf34c3cdcd2c75349c60a064427ac255958bf9b (diff)
Refs #25175 -- Deprecated db.backends.postgresql_psycopg2 module.
Diffstat (limited to 'django')
-rw-r--r--django/db/backends/postgresql_psycopg2/__init__.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/django/db/backends/postgresql_psycopg2/__init__.py b/django/db/backends/postgresql_psycopg2/__init__.py
index e69de29bb2..db97c5bcc9 100644
--- a/django/db/backends/postgresql_psycopg2/__init__.py
+++ b/django/db/backends/postgresql_psycopg2/__init__.py
@@ -0,0 +1,9 @@
+import warnings
+
+from django.utils.deprecation import RemovedInDjango30Warning
+
+warnings.warn(
+ "The django.db.backends.postgresql_psycopg2 module is deprecated in "
+ "favor of django.db.backends.postgresql.",
+ RemovedInDjango30Warning, stacklevel=2
+)