cyberdelia/django-pipeline — Issue #50: KeyError: 'templates' if I use synccompress with external_urls
Author: cristiandreica
Created: 2011-12-05 20:00:40+00:00
State: open

Here's the configuration I use:

------------------------------
DEBUG = False

PIPELINE_VERSION = True

PIPELINE_JS = {
'live': {
'external_urls': ( 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js', ),
},
}

PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.yui.YUICompressor'
PIPELINE_YUI_BINARY = 'java -jar ' + os.path.join(PROJECT_PATH, 'external/yuicompressor-2.4.7.jar')

and here's the traceback I receive when I run 'python manage.py synccompress live':

-------
File "/Users/macuser/projects/envs/balaur/lib/python2.6/site-packages/pipeline/management/commands/synccompress.py", line 50, in handle
packager.pack_javascripts(package, sync=sync, force=force)
File "/Users/macuser/projects/envs/balaur/lib/python2.6/site-packages/pipeline/packager.py", line 76, in pack_javascripts
return self.pack(package, self.compressor.compress_js, js_compressed, templates=package['templates'], **kwargs)
KeyError: 'templates'