summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
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
+)