From 93aa86c848ffb43bf7954cf0679a318f79ce281c Mon Sep 17 00:00:00 2001 From: Martin Weber Date: Tue, 18 Jun 2024 11:06:03 +0200 Subject: [PATCH] fix: invoke manage.py with Poetry This ensures that manage.py runs in the venv and finds the Django executable. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 200563d..f463daf 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ loaddata: - @docker-compose exec caluma ./manage.py loaddata setup/example-data.json + @docker-compose exec caluma poetry run ./manage.py loaddata setup/example-data.json flush: - @docker-compose exec caluma ./manage.py flush --no-input + @docker-compose exec caluma poetry run ./manage.py flush --no-input