mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-15 01:14:53 +03:00
Fix condition for Django Compressor
This commit is contained in:
parent
4912c81239
commit
642e717d45
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
{%- if cookiecutter.frontend_pipeline == "Django Compressor" %}
|
||||||
|
|
||||||
{%- if "{{ cookiecutter.frontend_pipeline }}" == "Django Compressor" %}
|
|
||||||
compress_enabled() {
|
compress_enabled() {
|
||||||
python << END
|
python << END
|
||||||
import sys
|
import sys
|
||||||
|
@ -21,5 +21,6 @@ then
|
||||||
python manage.py compress
|
python manage.py compress
|
||||||
fi
|
fi
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
python manage.py collectstatic --noinput
|
python manage.py collectstatic --noinput
|
||||||
python manage.py compilemessages -i site-packages
|
python manage.py compilemessages -i site-packages
|
||||||
|
|
Loading…
Reference in New Issue
Block a user