brack3t / Djrill

[INACTIVE/UNMAINTAINED] Djrill is an email backend and new message class for Django users that want to take advantage of the Mandrill transactional email service from MailChimp.
BSD 3-Clause "New" or "Revised" License
319 stars 64 forks source link

DeprecationWarning: django.utils.simplejson is deprecated #32

Closed anderspetersson closed 11 years ago

anderspetersson commented 11 years ago

djrill/views.py:5 throws a DeprecationWarning when used with django trunk. The json module from the standard lib should be used instead.

This should probably be implemented with a try/except block, looking for the json module, if it throws an ImportError, use the django.utils.simplejson module.

medmunds commented 11 years ago

Thanks for the report. We currently test against Django 1.3 - 1.5, but not trunk.

Since we also don't support python earlier than 2.6 (due to a limitation in recent requests), can probably just switch to python's json package across the board.