diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/base.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/base.html index b54692228..692cb49ef 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/base.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/base.html @@ -1,4 +1,4 @@ -{% raw %}{% load staticfiles i18n %} +{% raw %}{% load staticfiles i18n {% endraw %}{% if cookiecutter.use_compressor == "y" %}compressor{% endif %}{% raw %}%} @@ -18,9 +18,15 @@ - + {% endraw%}{% if cookiecutter.use_compressor == "y" %} + {% compress css %} + {% endif %}{% raw %} + {% endraw%}{% if cookiecutter.use_compressor == "y" %} + {% endcompress %} + {% endif %}{% raw %} + {% endblock %} {% endraw %}{% if cookiecutter.use_angular == "y" %}{% raw %}{% block angular %} @@ -104,7 +110,13 @@ + {% endraw%}{% if cookiecutter.use_compressor == "y" %} + {% compress js %} + {% endif %}{% raw %} + {% endraw%}{% if cookiecutter.use_compressor == "y" %} + {% endcompress %} + {% endif %}{% raw %} {% endblock javascript %}