From 3b0ae4017525fae525742b06baee34a10672f477 Mon Sep 17 00:00:00 2001 From: tawoe Date: Wed, 15 Dec 2021 12:04:10 +0100 Subject: [PATCH 1/2] uncomment psycopg2 --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c2e5898..190c490 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,4 +9,5 @@ matplotlib django-bootstrap-datepicker-plus==3.0.5 django-mathfilters django-bootstrap3 -psycopg2==2.9.1 +#uncomment below if you cannot / want not install psycopg2 from source or distribution package +#psycopg2-binary From 94263dfd899f66b8d11f7a19d9255f5363d39e9c Mon Sep 17 00:00:00 2001 From: tawoe Date: Wed, 15 Dec 2021 14:17:55 +0100 Subject: [PATCH 2/2] /feature add psycopg2 notes to README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index bb914c8..d449b26 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,15 @@ The directory tree might look like: ## Install dependencies + + +**Either install psycopg2 from source or from your os distribution (preferred), +or uncomment #psycopg2-binary to psycopg2-binary:** + +```bash +$ sed -i 's/#psycopg2-binary/psycopg2-binary/' requirements.txt # (optional see above) +``` + ```bash $ virtualenv --python=python3 ../venv $ source ../venv/bin/activate