how to read json data from a link and passing that data to django -
i have link(127.0.0.1:8000/read) contains json data.how read json data link , pass values django form.
your question rough - , without understanding requirements are, hard place read example. simple example of how json:
import urllib2 import json req = urllib2.request('http://127.0.0.1:8000/read') r = urllib2.urlopen(req) data = r.read() j = json.loads(data) node = j['node']['child_node'] element in node: print "element node information: %s" % element['child_node'] #an example of saving information send form form_text = j['parentnode']['copy']['formtext']
Comments
Post a Comment