Fix condition for Django Compressor

This commit is contained in:
Bruno Alla 2023-06-09 09:32:31 +01:00
parent 4912c81239
commit 642e717d45
No known key found for this signature in database

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
{%- if cookiecutter.frontend_pipeline == "Django Compressor" %}
{%- if "{{ cookiecutter.frontend_pipeline }}" == "Django Compressor" %}
compress_enabled() {
python << END
import sys
@ -21,5 +21,6 @@ then
python manage.py compress
fi
{%- endif %}
python manage.py collectstatic --noinput
python manage.py compilemessages -i site-packages