From eb59e0c487852abf1675b6024d220f06b1f0449a Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sat, 8 Nov 2025 21:43:20 +0545 Subject: [PATCH] fix(justfile): escape Jinja2 variables to prevent premature evaluation --- djinit/templates/shared/justfile.j2 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/djinit/templates/shared/justfile.j2 b/djinit/templates/shared/justfile.j2 index 93cde70..a4e0052 100644 --- a/djinit/templates/shared/justfile.j2 +++ b/djinit/templates/shared/justfile.j2 @@ -12,7 +12,7 @@ dev: # Run development server with custom host and port dev-server HOST="0.0.0.0" PORT="8000": - uv run python manage.py runserver {{HOST}}:{{PORT}} + uv run python manage.py runserver {{ '{{' }}HOST{{ '}}' }}:{{ '{{' }}PORT{{ '}}' }} # Create migrations for all apps makemigrations: @@ -20,7 +20,7 @@ makemigrations: # Create migrations for specific app makemigrations-app APP: - uv run python manage.py makemigrations {{APP}} + uv run python manage.py makemigrations {{ '{{' }}APP{{ '}}' }} # Run all migrations migrate: @@ -112,7 +112,7 @@ server: # Start production server with gunicorn workers server-prod WORKERS="4": - uv run gunicorn {{ project_name }}.wsgi:application --bind 0.0.0.0:8000 --workers {{WORKERS}} + uv run gunicorn {{ project_name }}.wsgi:application --bind 0.0.0.0:8000 --workers {{ '{{' }}WORKERS{{ '}}' }} # Start production server with gunicorn and reload on file changes server-watch: @@ -143,12 +143,12 @@ setup-complete: # Install a new package install PACKAGE: - uv add {{PACKAGE}} + uv add {{ '{{' }}PACKAGE{{ '}}' }} # Install a dev package install-dev PACKAGE: - uv add --dev {{PACKAGE}} + uv add --dev {{ '{{' }}PACKAGE{{ '}}' }} # Remove a package remove PACKAGE: - uv remove {{PACKAGE}} + uv remove {{ '{{' }}PACKAGE{{ '}}' }}