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
1
vote
1 answer

django-pipeline with s3 storage is not compressing my js

I'm using django-pipeline with s3. I'm successfully using collectstatic to combined my Javascript files and store them in my s3 bucket, but they are not getting compressed for some reason (verified by looking at the file, its size, and its…
John Lehmann
  • 7,975
  • 4
  • 58
  • 71
1
vote
0 answers

PipelineStorage IOError: [Errno 21]

I started using Django, and I wanted a SASS compiler so I found django-pipeline. I followed the steps in this tutorial and managed to get to the collectstatic step. When I run the command manage.py collectstatic and type 'yes' I get this error:…
Vedran
  • 1,113
  • 1
  • 17
  • 36
1
vote
1 answer

Automatically remove source files after collectstatic with django-pipeline

With django-pipeline, is it possible to automatically remove source files after collectstatic ? for example : PIPELINE_JS = { 'stats': { 'source_filenames': ( 'js/jquery.js', 'js/d3.js', …
luc2
  • 547
  • 1
  • 4
  • 11
1
vote
1 answer

Django pipeline - How to serve static files after running collectstatic?

My project structure |- myProject |- manage.py |- myProject |- settings.py |- static // This is my STATIC_ROOT |- myApp |- static // This is where I edit and save my static files So I run the collectstatic…
gkpo
  • 2,623
  • 2
  • 28
  • 47
1
vote
2 answers

Why is Django creating a "static" directory at run time?

I'm new to Django. I'm using Django-Pipeline with Bower. I followed this documentation Here's the structure of my Django project: |- myProject |- manage.py |- bower.json |- bower_components |- jquery |- bootstrap …
gkpo
  • 2,623
  • 2
  • 28
  • 47
1
vote
1 answer

collectfiles failes for pipeline / yUglify: The system cannot find the path specified

I've been trying to get django-pipeline to work to combine and minify my css and js assets. I don't seem to be able to sort the following issue out. When I run: python manage.py collectstatic --noinput I get an…
Gabriël
  • 1,323
  • 2
  • 22
  • 34
1
vote
0 answers

django pipeline with S3 storage not compressing

I'm trying to use S3 as my production storage for static files but whenever I collect the static files, I see them being uploaded to S3 bucket, the compressed versions are not being created/uploaded (the ones mentioned in output_filename). Here are…
Romeo Mihalcea
  • 9,714
  • 12
  • 50
  • 102
1
vote
2 answers

Django on Heroku, issue with Yuglify and CollectStatic

I'm using Django-Pipeline to minify my javascript. When I push my project to Heroku and CollectStatic runs, it gives me the error pipeline.exceptions.CompressorError: /usr/bin/env: yuglify: No such file or directory But when I run CollectStatic…
user3084860
  • 421
  • 5
  • 19
1
vote
0 answers

Django Static Files Permissions

I'm currently in the process of upgrading our production machines, and while I'm at it I'm changing the way some of the permissions work. I'm nearly done, but I'm stuck on the static files portion (the last bit). Currently, the static files are…
James R
  • 4,571
  • 3
  • 30
  • 45
1
vote
1 answer

Dynamically compressing static files with django-pipeline

I am getting started with django-pipeline. If I understand it correctly, I need to specify the directories with my CSS/JS files to compress them. However, this is a tedious task as my project is quite big and has static files here and there (not…
Bob Dem
  • 991
  • 1
  • 11
  • 23
1
vote
1 answer

Strange 500 server error issue with django-pipeline

I am using django-pipeline for minifying js & versioning of js and css. I am very well aware of Debug=False and allow_hosts=['*'] so that's not the case here. The strange issue is, I am getting 500 server error in 2 of the pages out of 8 pages. The…
piyush
  • 145
  • 3
  • 14
1
vote
2 answers

JST through Django-Pipeline

I am creating a Backbone / Django application and I am wondering how to implement templates that reside in different files in for the Backbone views. From Rails I am used to using JST which allowed me to have a folder structure like -js …
Simon Thordal
  • 893
  • 10
  • 28
1
vote
0 answers

how to pre-compile assets with Django-pipeline

I am using Modernizr for conditionally loading JS script. Now, locally this is working since the js are not compressed. In production, however, JS files are compressed to a file, so the modernizr condition won't work. I looked into Rails they have…
momigi
  • 129
  • 1
  • 10
1
vote
1 answer

How to make django-storage and django-pipeline work together

I want to use both django-pipeline and django-storage on heroku for a personal app. Using only django-pipeline works perfectly, using only django-storage works like a charm but I don't manage to get both of them work together :( When you read docs,…
Alex Grs
  • 3,231
  • 5
  • 39
  • 58
1
vote
1 answer

Force exception on django-pipeline when LESS does not compile

I have django-pipeline installed and am using it to compile a LESS file into a css file. Most of the time, when I run collectstatic, it works as expected: stylesheet.less -> stylesheet.css -> stylesheet.min.css However, if the LESS file has…
scottmrogowski
  • 2,063
  • 4
  • 23
  • 32