From b72c5b0916c741c3c36545d79370cb636eef4ed2 Mon Sep 17 00:00:00 2001 From: Nicholas Clarke Date: Sun, 9 Apr 2023 21:06:53 -0700 Subject: [PATCH] Downgrade psycopg2 (https://stackoverflow.com/questions/68024060/assertionerror-database-connection-isnt-set-to-utc) --- notes.md | 4 +++- requirements.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/notes.md b/notes.md index f208a0f..cd3ecb6 100644 --- a/notes.md +++ b/notes.md @@ -4,4 +4,6 @@ The below are useful for checking migrations `python manage.py migrate --plan` `python manage.py sqlmigrate model 0001` (model and 0001 from the above) -vscode and heroku can handle multiline env vars - using \n in terminal though breaks the ssl files \ No newline at end of file +vscode and heroku can handle multiline env vars - using \n in terminal though breaks the ssl files + +heroku config:set DISABLE_COLLECTSTATIC=1 --app tv-backend-v4 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index a2b18e1..cd333d5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ Django==2.2.28 -psycopg2-binary +psycopg2-binary<2.9 jsonfield==2.1.1 django-prometheus==2.2.0