Using simplejson for jsonify the data of type Decimal, which will used

for numeric type of PostgreSQL, in python using psycopg2.
This commit is contained in:
Ashesh Vashi 2016-01-09 18:05:15 +05:30
parent 1ba9067c60
commit d2897a334f
3 changed files with 4 additions and 2 deletions

View File

@ -26,3 +26,4 @@ six==1.9.0
speaklater==1.3
pycrypto==2.6.1
wsgiref==0.1.2
simplejson==3.6.5

View File

@ -24,4 +24,5 @@ psycopg2==2.5.2
pytz==2014.10
six==1.9.0
speaklater==1.3
pycrypto==2.6.1
pycrypto==2.6.1
simplejson==3.6.5

View File

@ -11,7 +11,7 @@
from flask import Response
from flask.ext.babel import gettext as _
import json
import simplejson as json
def make_json_response(success=1, errormsg='', info='', result=None,