jbalogh / jingo

An adapter for using Jinja2 templates with Django.
http://readthedocs.org/docs/jingo/en/latest/
BSD 3-Clause "New" or "Revised" License
178 stars 45 forks source link

Django 1.7: AttributeError: 'module' object has no attribute 'StrAndUnicode' #66

Closed groovecoder closed 9 years ago

groovecoder commented 9 years ago

In our massive update from Django 1.4 to 1.7, I caught our jingo.monkey patch call in manage.py using a removed feature of Django?

Traceback (most recent call last):
  File "./manage.py", line 46, in <module>
    import jingo.monkey
  File "/home/vagrant/src/vendor/src/jingo/jingo/monkey.py", line 60, in <module>
    class SafeStrAndUnicode(django.utils.encoding.StrAndUnicode):
AttributeError: 'module' object has no attribute 'StrAndUnicode'

StrAndUnicode was deprecrated in 1.5 and is removed as of 1.7.

groovecoder commented 9 years ago

Okay, I'm dumb and simply didn't use the latest code that already fixed this. But I'll file another issue to make a 0.8 tag & release on PyPI that includes the fix.