This issue is specifically for a production site using Django Compressor. I want this to work when COMPRESS_OFFLINE = True so that I can pre-compress all of my site's css files before pushing to production.
I would like to, within base.html, do the equivalent of this:
{% compress %}
{% block css %}
{% endblock %}
{% endcompress %}
so that all of my css blocks in files that extend base are compressed. This is mainly so that I don't have to add {% compress %} tags to all my child templates.
There are several similar issues on Stack Overflow, but I haven't found a good solution for doing this when compressing offline (i.e. with Django Compressor's compress management command). The surrounding compress tags work fine when COMPRESS_OFFLINE = False. Has someone found a way to make this work offline?
I'm listing a few similar threads that seem to pertain to non-offline solutions. The links in the second thread indicate that there have been past issues with inheritance when working with Django Compressor offline but perhaps they have been resolved: