[Django]-Django-pipeline 'compressed' is not a valid tag library: ImportError raised loading pipeline.templatetags.compressed: No module named conf

12👍

Since version 1.4 django-pipeline has changed the template tag name, you will have to replace:

{% load compressed %}
{% compressed_css 'foo' %}
{% compressed_js 'bar' %}

With :

{% load pipeline %}
{% stylesheet 'foo' %}
{% javascript 'bar' %}

See http://django-pipeline.readthedocs.org/en/latest/usage.html#templatetags for details.

Leave a comment