Run all python Makefile commands via poetry

This commit is contained in:
Lukáš Kucharczyk 2023-01-05 17:12:57 +01:00
parent 85f52fc735
commit 869e0e0fe0
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
1 changed files with 8 additions and 8 deletions

View File

@ -16,28 +16,28 @@ css-dev: css
npx tailwindcss -i ./src/input.css -o ./src/web/tracker/static/base.css --watch
makemigrations:
python src/web/manage.py makemigrations
poetry run python src/web/manage.py makemigrations
migrate: makemigrations
python src/web/manage.py migrate
poetry run python src/web/manage.py migrate
dev: migrate
python src/web/manage.py runserver
TZ=Europe/Prague poetry run python src/web/manage.py runserver
dumptracker:
python src/web/manage.py dumpdata --format yaml tracker --output tracker_fixture.yaml
poetry run python src/web/manage.py dumpdata --format yaml tracker --output tracker_fixture.yaml
loadplatforms:
python src/web/manage.py loaddata platforms.yaml
poetry run python src/web/manage.py loaddata platforms.yaml
loadsample:
python src/web/manage.py loaddata sample.yaml
poetry run python src/web/manage.py loaddata sample.yaml
createsuperuser:
python src/web/manage.py createsuperuser
poetry run python src/web/manage.py createsuperuser
shell:
python src/web/manage.py shell
poetry run python src/web/manage.py shell
poetry.lock: pyproject.toml
poetry install