django-sekizai Support

Django Compressor comes with support for django-sekizai via an extension. django-sekizai provides the ability to include template code, from within any block, to a parent block. It is primarily used to include js/css from included templates to the master template.

It requires django-sekizai to be installed. Refer to the django-sekizai docs for how to use render_block

Please note that the sekizai integration does not work with offline compression. See this issue for details.

Usage

{% load sekizai_tags %}
{% render_block "<js/css>" postprocessor "compressor.contrib.sekizai.compress" %}