andreyfedoseev/django-less — pull request #23 by ksikka (2013-10-26 20:19:17+00:00)
Title: Allow chars that are not ascii-encodable in the inline-less template tag

I did this because I was getting an error with bootstrap 3 as the input:

ERROR Internal Server Error: /app/9/uiestate.css
Traceback (most recent call last):
File "/Users/kssworld93/Projects/appcubator/appcubator-site/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/kssworld93/Projects/appcubator/appcubator-site/venv/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view
return view_func(*args, **kwargs)
File "/Users/kssworld93/Projects/appcubator/appcubator-site/appcubator/views/app.py", line 593, in css_sheet
css_string = t.render(context)
File "/Users/kssworld93/Projects/appcubator/appcubator-site/venv/lib/python2.7/site-packages/django/template/base.py", line 140, in render
return self._render(context)
File "/Users/kssworld93/Projects/appcubator/appcubator-site/venv/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/Users/kssworld93/Projects/appcubator/appcubator-site/venv/lib/python2.7/site-packages/django/template/base.py", line 823, in render
bit = self.render_node(node, context)
File "/Users/kssworld93/Projects/appcubator/appcubator-site/venv/lib/python2.7/site-packages/django/template/debug.py", line 74, in render_node
return node.render(context)
File "/Users/kssworld93/Projects/appcubator/appcubator-site/venv/lib/python2.7/site-packages/less/templatetags/less.py", line 62, in render
output = self.compile(output)
File "/Users/kssworld93/Projects/appcubator/appcubator-site/venv/lib/python2.7/site-packages/less/templatetags/less.py", line 33, in compile
source_file.write(source)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 131333-131334: ordinal not in range(128)

Now it works fine for me. What do I need to do to get this fix pulled in?