django unexpected keyword argument 'use_decimal' 问题

来源:互联网 发布:淘宝上卖的沙发怎么样 编辑:程序博客网 时间:2024/06/06 03:54

出错信息如下:

/usr/local/lib/python2.7/site-packages/django_chartit-0.1-py2.7.egg/chartit/templatetags/chartit.py:4: DeprecationWarning: django.utils.simplejson is deprecated; use json instead.
  from django.utils import simplejson


__init__() got an unexpected keyword argument 'use_decimal'



需要更新simplejson库


sudo easy_install-2.7 simplejson


然后修改 chartit.py 第4行,直接改成import simplejson

原创粉丝点击