ydm/django-sameas — pull request #3 by natevw (2014-09-02 22:48:24+00:00)
Title: {revent explosion in Django's debug helper due to non-standard encoding

When using this helper, any error in templates was met with just a "A server error occurred. Please contact the administrator." instead of the normal Debug=True error page. The shell logs trace this to:

> …django/views/debug.py", line 406, in _get_lines_from_file
> source = [six.text_type(sline, encoding, 'replace') for sline in source]
> LookupError: unknown encoding: utf-8-unix

…simplest fix just to drop the `-unix` bit, although I know that's meaningful to Emacs, seems like a poor tradeoff.