Use Django's inbuilt simplejson

This commit is contained in:
2011-06-16 12:58:14 +01:00
parent 165ffcf420
commit 5bfc9d8fa1
2 changed files with 20 additions and 11 deletions

View File

@@ -1,4 +1,11 @@
import simplejson as json
try:
from django.utils import simplejson as json
except ImportError:
try:
import simplejson as json
except ImportError:
raise ImportError("simplejson is required for this library to work")
import urllib2
import urllib
from datetime import datetime