You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running 'cactus serve' then results in this error...
django.template.base.TemplateSyntaxError: 'compress' is not a valid tag library: ImportError raised loading compressor.templatetags.compress: cannot import name caches
Unfortunately, I'm really not that familiar with Django to troubleshoot this well. Any ideas how to fix this or otherwise get a CSS/JS minifier/combiner working with Cactus?
The text was updated successfully, but these errors were encountered:
You will probably need an older version of Django-compressor that works with Django < 1.7.
From the Django-compressor readme:
Django Compressor is compatible with Django 1.8 and newer.
So it tries to import something from django (django.core.cache.caches) but that did not exist in Django<1.7.
I'm trying to use Django Compressor (http://django-compressor.readthedocs.io/en/latest/quickstart/) with Cactus.
I've done the following...
Run "pip install django-compressor" from a command line
Modified the "INSTALLED_APPS" variable in site-packages/Cactus/site.py to have the value ['django_markwhat', 'compressor']
Added this to my base.html...
Running 'cactus serve' then results in this error...
django.template.base.TemplateSyntaxError: 'compress' is not a valid tag library: ImportError raised loading compressor.templatetags.compress: cannot import name caches
Unfortunately, I'm really not that familiar with Django to troubleshoot this well. Any ideas how to fix this or otherwise get a CSS/JS minifier/combiner working with Cactus?
The text was updated successfully, but these errors were encountered: