Questions tagged [django-pipeline]

An asset packaging library for Django

Django Pipeline is an asset packaging library for Django, providing both CSS and JavaScript concatenation and compression, built-in JavaScript template support, and optional data-URI image and font embedding.

110 questions
25
votes
1 answer

Django pipeline Cache Busting is not Updating Cached File/Hash

Basically, the hash on the cache busting file is not updating. class S3PipelineStorage(PipelineMixin, CachedFilesMixin, S3BotoStorage): pass PIPELINE_JS = { 'main.js': { 'output_filename': 'js/main.min.js', 'source_filenames': [ …
Ben
  • 15,010
  • 11
  • 58
  • 90
17
votes
2 answers

Yuglify compressor can't find binary from package installed through npm

I have a fresh virtualenv environment and have got the latest django-pipleline. The JS compression with Closure works perfect, but CSS compression with Yuglify fails, due a node error: STATICFILES_STORAGE =…
Houman
  • 64,245
  • 87
  • 278
  • 460
12
votes
4 answers

Django Pipeline, Heroku, and SASS

I've been trying to get django-pipeline setup so that I can compile and concat my assets. I would also like to remove the compiled css files from my repository to avoid merge conflicts in pull requests. I've been trying to get django-pipeline to…
Eric Roberts
  • 285
  • 2
  • 11
10
votes
1 answer

django-pipeline - Page load really slow

I am trying django-pipeline in order to minify static resources, use cache for them and make my templates simpler. My CSS and JS files are found and loaded by my browser but it takes about 10 seconds for my (very simple) home page to load. I am…
Q Caron
  • 952
  • 13
  • 26
7
votes
2 answers

Unable to minify html files using django-pipeline

In accordance with the django-pipeline docs, I've added 'pipeline.middleware.MinifyHTMLMiddleware', to my MIDDLEWARE_CLASSES to minify html files. But, when I check the htmls that have been rendered while running the server, they are not minified.…
kurrodu
  • 2,108
  • 4
  • 32
  • 49
7
votes
1 answer

Django pipeline can't find static css files

I've configured django-pipeline to compress js and css. While js works, it is not able to find css files. The files can be found using findstatic command. I'm testing it with just one file now which has a single css rule. Here's my…
Apoorv Parijat
  • 861
  • 1
  • 10
  • 16
6
votes
2 answers

Django-pipeline not serving files in development mode

I'm trying to compile static with django-pipeline, but can't manage to serve static in dev mode. Since I'm not a Django developer, I may be wrong how Django serves static files itself. Here's my project structure: project (project itself) project…
f1nn
  • 6,989
  • 24
  • 69
  • 92
5
votes
5 answers

django-pipeline and s3boto storage don't seem to work together

I'm trying to use django-pipeline-1.1.27 with s3boto to compress and filter static files, and then upload them to an s3 bucket. If I just use: PIPELINE_STORAGE = 'pipeline.storage.PipelineFinderStorage' Then it works and I get a static folder with…
StevenC
  • 1,172
  • 1
  • 9
  • 17
5
votes
1 answer

getting django-pipeline and bower to play nicely together

I am installing bower components to external/bower_components/ under my project root. I have additional static files under static as well as some that are part of installed apps. I'm trying to use django-pipeline to minify static files that all live…
mirth23
  • 377
  • 2
  • 10
5
votes
3 answers

Django + Django-Pipeline with Javascript "Require"

I have a module that calls require on a Javascript library. I am trying to compress my .js files with Django-Pipeline but after collectstatic the web-page gives the error: UncaughtReferenceError: require is not Defined Normal testing/deployment…
user3467349
  • 3,043
  • 4
  • 34
  • 61
4
votes
0 answers

Compiled SASS from django-pipeline not found by staticfiles even though it's present

I've configured django-pipeline as follows: PIPELINE = { 'PIPELINE_ENABLED': True, 'COMPILERS': ( 'pipeline.compilers.sass.SASSCompiler', ), 'STYLESHEETS': { 'common': { 'source_filenames': ( …
Pieter
  • 31,619
  • 76
  • 167
  • 242
4
votes
2 answers

django-pipeline not working at all

I were fighting with this for for hours, please, help me fix this or kill me =( I am getting 404 for all 4 files in view. No compiled files anywhere. Python 3.4.0 in virtualenv, Django 1.7 RC3. Btw: python manage.py collectstatic copies everything…
val_
  • 377
  • 1
  • 3
  • 8
4
votes
1 answer

Why does django-pipeline's {% compressed_js ... %} tag output each script separately?

I've configured pipeline as follows: STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'pipeline.finders.PipelineFinder', ) # Static files…
orokusaki
  • 55,146
  • 59
  • 179
  • 257
3
votes
2 answers

ValueError: Missing staticfiles manifest entry on Heroku with Docker, django-pipeline, whitenoise

I am trying to deploy a Django project on Heroku using Docker, django-pipeline, and whitenoise. The container builds successfully, and I see that collectstatic generates the expected files inside container-name/static. However, upon visiting any…
Nathan_James
  • 139
  • 2
  • 9
3
votes
3 answers

django-pipeline throwing ValueError: the file could not be found

When running python manage.py collectstatic --noinput I'm getting the following error: Post-processing 'jquery-ui-dist/jquery-ui.css' failed! Traceback (most recent call last): File "manage_local.py", line 10, in…
Michael Bates
  • 1,884
  • 2
  • 29
  • 40
1
2 3 4 5 6 7 8