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
Ok figured I would post this here before I waste countless hours of my life trying to fix something someone might have an easy answer to. We are using django-compressor and are having issues when we set COMPRESS_OFFLINE = True. We seem to error below at random. Sometimes the page loads and sometimes it does not. It works perfectly fine with COMPRESS_OFFLINE = False.
You have offline compression enabled but key "cdfe134683bd23a2ea9de19b46490a13" is missing from offline manifest.
It usually means you have dynamic content inside your {% compress %} blocks, or variables you didn't pass to COMPRESS_OFFLINE_CONTEXT. Would need to see more to debug, like your templates, manifest etc.
There was a couple issues. The first one was we had our GS_FILE_OVERWRITE = False which was creating a different version of the manifest each time we complied it. For example is was making a manifest_1.json. We solved that by creating a compress_settings.py with GS_FILE_OVERWRITE = True and just running the command with that settings file.
The next issue was caused by having variables in the {% compress js inline %}. I guess this issue can be closed now.
Ok figured I would post this here before I waste countless hours of my life trying to fix something someone might have an easy answer to. We are using django-compressor and are having issues when we set COMPRESS_OFFLINE = True. We seem to error below at random. Sometimes the page loads and sometimes it does not. It works perfectly fine with COMPRESS_OFFLINE = False.
Here is a little details on our setup.
Django 1.6.3
django-compressor 1.3
google-cloud-storage 0.3
Nginx
Gunicorn
We are using google cloud to serve static content including the cache for compressor. Here are our settings for compressor.
The text was updated successfully, but these errors were encountered: