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
2
votes
1 answer

Django-pipeline doesn't find file or directory when running collectstatic

I've installed django-pipeline package and it works perfectly on my local computer. The problem happens when I run collectstatic on production and I get this error: raise CompressorError(stderr) pipeline.exceptions.CompressorError: b'/usr/bin/env:…
2
votes
1 answer

Why django-pipeline does not collect static?

I've followed django-pipeline docs and I am having an issue when collecting static, the console shows that the specified file is not found. collectstatic works without djanog-pipeline. I also tried to add static file at the same level as manage.py…
Horai Nuri
  • 5,358
  • 16
  • 75
  • 127
2
votes
0 answers

Django-pipeline and compass generate a empty css file

I have a problem I can't solve. I have a sass template that easily compile with compass if I run it manually, but I cannot get the same result using django-pipeline. My settings are simple. I have an assets dir to the common assets and a static dir…
Karim N Gorjux
  • 2,880
  • 22
  • 29
2
votes
1 answer

django-pipeline does not work

I am trying to make django-pipeline works but it just does not work. Below is my seetting. I added 'pipeline' in the apps section. This is the error when I attempt to open my site: 'Settings' object has no attribute 'PIPELINE' Below is my…
2
votes
1 answer

Angular 2 Typescript compiler error

I think its time to use Angular2 in development, so I want to start, but I have stuck at Error raised by TS compiler. Im using django-pipelines and pipelines-typescript package. It seems that compiler works ok if i create a .ts file it outputs .js…
Dmitry Yudin
  • 1,033
  • 1
  • 10
  • 31
2
votes
1 answer

django-pipeline DEBUG=True, compressed file not found

OK. I going mad using django-pipeline and I am one step away from not using it at all. I am not in production yet. All of the below is happening in development (DEBUG=True) mode. My css static files live in a dir called 'project/static/css' and I…
nik_m
  • 11,825
  • 4
  • 43
  • 57
2
votes
1 answer

Django Pipeline generates empty file

I have a new Django project, all seems to work fine. I am using Django pipeline, however when I run "collectstatic" command, it generates all the files but my main css and js files are blank, well the js file…
polarcare
  • 575
  • 1
  • 6
  • 24
2
votes
1 answer

Django 1.8.2 not serving all staticfiles - django-pipeline

I am running Django 1.8.2 and I am using django-pipeline 1.5.1 to collect and compress my CSS and JS files. After running python manage.py collectstatic, Django collects all files and compresses them as configured. But when I want to access the…
n2o
  • 6,175
  • 3
  • 28
  • 46
2
votes
1 answer

x-amz-acl being set incorrectly when using collectstatic with latest version of Boto, Pipeline, and Storages

I'm in the process of bringing my app's dependencies up-to-date. I made the following changes to requirements.txt: boto: upgraded to 2.34.0 django-pipeline: upgraded to 1.4.2 django-require: upgraded to 1.0.6 django-storages: was on latest…
TAH
  • 1,658
  • 1
  • 19
  • 37
2
votes
0 answers

Django-pipeline is post-processing static html files

I'm using Django-pipeline to minify my static files and synced to S3. Everything works great when I want to minify and concatenate my JS and CSS files, but when I run "collectstatic", it also seems to be versioning/cache-busting my static html…
Cliff F
  • 381
  • 6
  • 14
2
votes
1 answer

Multiple versions of same JS library with Bower and django-pipeline

Two of the libraries I use in my single page application are moment and backgrid-moment-cell. I use bower to manage my front-end libraries and django-pipeline for asset packaging. I'd like to use version 2.8.1 of moment, but backgrid-moment-cell…
Erik
  • 7,479
  • 8
  • 62
  • 99
2
votes
1 answer

Minifying static files (js & css) using django-pipeline results in empty files

I have gone through all of the related posts similar to the issue I have, but none of them seem to solve my problem therefore my question. When I run python manage.py collectstatic django-pipeline generates minified css file which has no content.…
kurrodu
  • 2,108
  • 4
  • 32
  • 49
2
votes
0 answers

Expected string or buffer with django pipeline when trying to minify js

When I try to this on my base template {% load compressed %} {% compressed_js 'app_name' %} <- fails here This is my settings.py file: PIPELINE_JS = { 'app_name': { 'source_filenames': ( 'static/js/bootstrap.js', ) …
Martin Volpe
  • 91
  • 1
  • 9
2
votes
2 answers

django-pipeline js compressor is not working

This is my settings.py looks like : kProjectRoot = abspath(normpath(join(dirname(__file__), '..'))) MEDIA_ROOT = os.path.join(kProjectRoot, 'abc/media/') MEDIA_URL = '/media/' INSTALLED_APPS = ( 'django.contrib.auth', …
curiousguy
  • 3,212
  • 8
  • 39
  • 71
2
votes
1 answer

Is there any way to load, minimize and combine different javascript files for different templates in Django?

Now, I put some common javascript files in PIPELINE_JS settings. But I also want to load more specific js files based on each individual template. I know I can simply add a script tag to include corresponding js files in each template, but that…
chaonextdoor
  • 5,019
  • 15
  • 44
  • 61