jezdez/django_compressor — Issue #150: Avoid generic keys in context
Author: teraom
Created: 2011-11-04 00:13:25+00:00
State: open

After the css is compressed in file mode, the returned file uses a key "url" which is also used in css_file.html
This is a very generic name and the context from the calling template overrides this value, if there is the same key present.

In detail:

View : return render_to_response ( 'foo.html', { 'url' : 'http://github.com' }, context_instance=RequestContext(request))

Template foo.html
uses a regular load compress, compress block and other blocks.

The compressed CSS URL will not show up. It is supposed to be .css, but instead it ll be github.com

Solution: Replace url with a more generic name. Suggested: django_compressor_url