From ee11db023252507f841a9b6cda36f6a54b1f33dd Mon Sep 17 00:00:00 2001 From: Chadoulis Rizos-Theodoros Date: Sun, 7 Nov 2021 21:09:43 +0200 Subject: [PATCH] Update requirements.txt Django 1.11.27 has a safety check to ensure Postgres is running in UTC. This check was removed in Django 3.1 when multi-TZ support for Postgres was added. That check is implemented by looking at offset == 0. Psycopg 2.9 changes the offset value from an integer to a timedelta object. So the check now fails as timedelta(0) != 0. The most obvious solution would be to downgrade to psycopg 2.8.6 adding psycopg2==2.8.6 to the requirements.txt file. --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index a5212ab9..d3edb1a3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,4 +22,5 @@ seaborn==0.10.1 Shapely==1.7.0 SQLAlchemy==1.3.18 stringcase==1.2.0 -xarray==0.16.0 \ No newline at end of file +xarray==0.16.0 +psycopg2==2.8.6