jazzband / django-pipeline

Pipeline is an asset packaging library for Django.
https://django-pipeline.readthedocs.io/
MIT License
1.52k stars 372 forks source link

Template tag not rendering correct filenames #600

Open chrisspen opened 7 years ago

chrisspen commented 7 years ago

I just upgraded to the most recent version, and it's completely broken all media includes. The superficial problem seems to be it's rendering filenames that don't exist.

For example, I'll see in the output an include for:

/static/suit/bootstrap/css/bootstrap.min.ff6f3c68420b.css

But when I run Django's collectstatic, the actual filename generated is:

Post-processed 'suit/bootstrap/css/bootstrap.css' as 'suit/bootstrap/css/bootstrap.c0d0ee6ad333.css'

Oddly, Pipeline no longer seems to allow you to turn off this versioning. I've tried setting PIPELINE['PIPELINE_ENABLED'] = Fase, PIPELINE_ENABLED = False, and PIPELINE['JS_COMPRESSOR'] = None, PIPELINE['JS_COMPRESSOR'] = None, but Pipeline appears to still be enabled. How do you disable Pipeline?

chrisspen commented 7 years ago

The work-around I've found is to replace:

STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'

with the default:

STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'

but obviously this is not ideal since now I'll run into caching problems.

ryan-mccaffrey commented 7 years ago

+1, I am also having this issue on django-pipeline 1.6.12

My current (and hopefully temporary) solution is to use the default django-pipeline solution:

STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'