ajout d'un moyen de créer les catégories

This commit is contained in:
Jean-Marie Favreau 2023-11-15 16:29:33 +01:00
parent cbdd926c09
commit 8b452913a8

View File

@ -50,6 +50,10 @@ migrate:
docker exec -it $(BACKEND_APP_NAME) $(SHELL) "-c" \ docker exec -it $(BACKEND_APP_NAME) $(SHELL) "-c" \
"python manage.py migrate" "python manage.py migrate"
create-categories:
docker exec -it $(BACKEND_APP_NAME) $(SHELL) "-c" \
"python3 manage.py runscript create_categories"
build-dev: build-dev:
DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker-compose -f docker-compose.yml up --build -d DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker-compose -f docker-compose.yml up --build -d