joestump / django-ajax

A simple framework for creating AJAX endpoints in Django.
http://github.com/joestump/django-ajax
BSD 3-Clause "New" or "Revised" License
260 stars 54 forks source link

Try to use Python's built-in json module. #53

Closed smskelley closed 10 years ago

smskelley commented 10 years ago

According to the Django 1.5 release notes,

Django 1.5 deprecates django.utils.simplejson in favor of Python 2.6’s built-in json module.

In Django 1.7a2, importing django.utils.simplejson raises the exception:

ImportError: cannot import name simplejson

These modifications attempt to import Python's built-in json module, and if that fails, to attempt to use django.utils.simplejson.