Skip to content

Commit 099079c

Browse files
committed
psycopg2: pin to a compatible version with Django 2.2
We upgraded to latest psycopg2 in #8293 to a version that's incompatible with Django 2.2. This commit downgrades it to a compatible version. Closes #8334
1 parent 1ccc59e commit 099079c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

requirements/deploy.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Requirements for our production systems
22

33
-r pip.txt
4-
psycopg2==2.9.1
4+
5+
# psycopg2 2.9 is not compatible with Django 2.2
6+
# https://github.com/readthedocs/readthedocs.org/issues/8334
7+
psycopg2==2.8.6 # pyup: ignore
8+
59
gunicorn==20.1.0
610

711
# Version 3.0.0 drops support for Django < 3.0

requirements/docker.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
-r pip.txt
44
# https://www.psycopg.org/docs/install.html#psycopg-vs-psycopg-binary
5-
psycopg2-binary==2.9.1
5+
# psycopg2 2.9 is not compatible with Django 2.2
6+
# https://github.com/readthedocs/readthedocs.org/issues/8334
7+
psycopg2-binary==2.8.6 # pyup: ignore
68

79
# Version 3.0.0 drops support for Django < 3.0
810
# https://github.com/sebleier/django-redis-cache/#300

0 commit comments

Comments
 (0)