0👍
✅
According to the source code of django-compressor (compress.py:189-204)
, such OfflineGenerationError
occur when there is a syntax error in one of your template. To debug this error, you can change the verbosity > 0
so it will print the template name that cause the error.
Hope this can help you to debug the syntax error.
The last resort of debugging is to use pdb into the compress.py:169
and check why the compressor_nodes
is empty.
import pdb; pdb.set_trace()
👤Yeo
Source:stackexchange.com