Add make dev-author to create a local author account

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
denis
2026-10-16 22:14:32 +02:00
parent 562f914b3c
commit 9496b5b054
+4 -1
View File
@@ -5,7 +5,7 @@ VENV := .venv
VENV_PY := $(VENV)/bin/python VENV_PY := $(VENV)/bin/python
PORT ?= 8000 PORT ?= 8000
.PHONY: help install vendor-pyodide dev validate-levels build dev-sync fetch-nginx dev-nginx docs docs-serve deploy check-deploy test-deploy test test-js test-python test-backend test-e2e typecheck icons voice check-voice ci ci-e2e clean .PHONY: help install vendor-pyodide dev validate-levels build dev-sync fetch-nginx dev-nginx dev-author docs docs-serve deploy check-deploy test-deploy test test-js test-python test-backend test-e2e typecheck icons voice check-voice ci ci-e2e clean
help: ## Affiche cette aide help: ## Affiche cette aide
@grep -E '^[a-z-]+:.*##' $(MAKEFILE_LIST) | awk -F':.*## ' '{printf " %-16s %s\n", $$1, $$2}' @grep -E '^[a-z-]+:.*##' $(MAKEFILE_LIST) | awk -F':.*## ' '{printf " %-16s %s\n", $$1, $$2}'
@@ -57,6 +57,9 @@ fetch-nginx: ## Récupère le binaire nginx dans .local/nginx (Debian/Ubuntu, sa
dev-nginx: $(VENV)/.installed build ## Pile locale réelle : nginx + Django (éditeur protégé, API) sur http://127.0.0.1:8080/ dev-nginx: $(VENV)/.installed build ## Pile locale réelle : nginx + Django (éditeur protégé, API) sur http://127.0.0.1:8080/
$(VENV_PY) scripts/local_stack.py $(VENV_PY) scripts/local_stack.py
dev-author: $(VENV)/.installed ## Crée (ou NAME=x --reset) un compte auteur pour make dev-nginx ; demande le mot de passe
cd backend && DJANGO_SETTINGS_MODULE=pyquest_api.settings.dev PYQUEST_DB_PATH=$(CURDIR)/.local/stack/db.sqlite3 ../$(VENV_PY) manage.py create_author $(or $(NAME),$(USER)) $(RESET)
validate-levels: $(VENV)/.installed ## Valide les niveaux (schéma, manifeste, traductions) validate-levels: $(VENV)/.installed ## Valide les niveaux (schéma, manifeste, traductions)
$(VENV_PY) scripts/validate_levels.py $(VENV_PY) scripts/validate_levels.py