18👍
✅
If this error was in your own code, then you would simply change
from django.utils import simplejson as json
to
import json
after upgrading to Django 1.5 or later.
However, in your case, it looks like the problem is that you’ve have an old version of django-jsonfield installed. If you upgrade to the latest version (currently 1.03), it should fix the problem.
7👍
Use import json as simplejson
instead
As of django 1.5, simplejson
is no longer in django.utils
module. So, just use python’s JSON module instead.
- Nginx Django and Gunicorn. Gunicorn sock file is missing?
- ValueError: Field 'id' expected a number but got 'Processing'
- Django ImportError: cannot import name 'ReporterProfile' from partially initialized module 'accounts.models' (most likely due to a circular import)
Source:stackexchange.com