diff --git a/CHANGELOG.md b/CHANGELOG.md index 0aebe2a7..60b3b3b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Fixed + +- Fixed arguments surrounded by curly braces in `Justfile` template by wrapping with `{% raw %}{% endraw %}` Jinja2 code. + ## [2024.42] ### Added diff --git a/src/django_twc_project/Justfile.jinja b/src/django_twc_project/Justfile.jinja index 0dd57078..e554f5fa 100644 --- a/src/django_twc_project/Justfile.jinja +++ b/src/django_twc_project/Justfile.jinja @@ -51,21 +51,21 @@ lock: # Print out the logs of all Docker containers, optionally specifying a container to focus on logs *ARGS: - @just docker logs {{ ARGS }} + @just docker logs {% raw %}{{ ARGS }}{% endraw %} # Run Django migrations migrate *ARGS: - @just dj migrate {{ ARGS }} + @just dj migrate {% raw %}{{ ARGS }}{% endraw %} alias mm := makemigrations # Generate Django migrations makemigrations *ARGS: - @just dj makemigrations {{ ARGS }} + @just dj makemigrations {% raw %}{{ ARGS }}{% endraw %} # Run a Django management command manage *COMMAND: - @just dj manage {{ COMMAND }} + @just dj manage {% raw %}{{ COMMAND }}{% endraw %} # Refresh local development environment refresh: @@ -113,7 +113,7 @@ stop: # Follow the logs of all Docker containers, optionally specifying a container to focus on tail *ARGS: - @just docker tail {{ ARGS }} + @just docker tail {% raw %}{{ ARGS }}{% endraw %} # Run entire test suite, including generating code coverage test: