django-pipeline

Angular 2 Typescript compiler error

柔情痞子 提交于 2020-01-04 05:45:12
问题 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 and its working. But when I trying to use angular2 it outputs " error TS2304: Cannot find name 'Map'" and "'Promise'.\n/Users/bbx/envs/dscn_3/bin/scene/scene/static/angular2/src/facade/promise.d.ts(3,14): error TS2304: Cannot find name promise":

django-pipeline DEBUG=True, compressed file not found

牧云@^-^@ 提交于 2019-12-24 00:29:31
问题 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 collect them in a dir called 'project/static_remote/css' (inside my own development server). I have set the following: import os from os.path import abspath, dirname, join # PATH CONFIGURATION here = lambda *x: join(abspath(dirname(__file__)), *x)

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

半城伤御伤魂 提交于 2019-12-12 19:29:53
问题 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 requires version ~2.5.0. How can I get both version into my project? 回答1: Front-end development should use a single dependency because you want to minimize the amount of code your users need to download. Bower helps you to manage this, which is a

Django pipeline generates empty files

ε祈祈猫儿з 提交于 2019-12-12 12:28:16
问题 I've got several apps in my django project and I'm using pipeline to compress files and all works fine, but I have an app called " mypage " for which every file generated after calling collectstatic is empty! (if I copy a file from mypage/static into another app static folder it's properly generated!) I'm going crazy! How can I debug this behavior? (no error or warning is displayed in the console and the pipeline configuration is properly defined because other static files are properly

django-pipeline with s3 storage is not compressing my js

时光总嘲笑我的痴心妄想 提交于 2019-12-08 09:45:21
问题 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 content-encoding). Otherwise things are working correctly with the combined scripts.js that is produced. Here are the changes I made to use django-pipeline: Added pipeline to installed apps. Added 'pipeline.finders.PipelineFinder' to STATICFILES_FINDERS .

django pipeline with S3 storage not compressing

你离开我真会死。 提交于 2019-12-08 06:45:06
问题 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 my relevant bits: PIPELINE_YUI_BINARY = '/usr/bin/yui-compressor' PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.yui.YUICompressor' PIPELINE_CSS_COMPRESSOR = 'pipeline.compressors.yui.YUICompressor' PIPELINE_JS = { 'main': { 'source_filenames': (

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

ε祈祈猫儿з 提交于 2019-12-06 05:59:19
问题 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 the nice versioned file that I configured. As soon as I switch to PIPELINE_STORAGE = 'storages.backends.s3boto.S3BotoStorage' I get Traceback (most recent call last): File "manage.py", line 15, in <module> execute_manager(settings) File "/my/virtual

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

我们两清 提交于 2019-12-04 10:41:08
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 the nice versioned file that I configured. As soon as I switch to PIPELINE_STORAGE = 'storages.backends.s3boto.S3BotoStorage' I get Traceback (most recent call last): File "manage.py", line 15, in <module> execute_manager(settings) File "/my/virtual/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager

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

放肆的年华 提交于 2019-12-03 07:58:37
问题 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 = 'pipeline.storage.PipelineCachedStorage' PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.closure.ClosureCompressor' PIPELINE_CSS_COMPRESSOR = 'pipeline.compressors.yuglify.YuglifyCompressor' When I try to collect the static: ./manage.py collectstatic It says: pipeline.compressors

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

纵饮孤独 提交于 2019-12-02 20:40:49
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 = 'pipeline.storage.PipelineCachedStorage' PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.closure.ClosureCompressor' PIPELINE_CSS_COMPRESSOR = 'pipeline.compressors.yuglify.YuglifyCompressor' When I try to collect the static: ./manage.py collectstatic It says: pipeline.compressors.CompressorError: /usr/bin/env: node: No such file or directory But I have clearly installed yuglify even as