I have a getJSON call that is called back correctly, but the data variable is null. The python code posted below is executed by the getJSON call to the demandURL. Any ideas?
javascript:
var demandURL = "/demand/washington/";
$.getJSON(demandURL, function(data) {
console.log(data);
});
python:
data = {"demand_count":"one"}
json = simplejson.dumps(data)
return HttpResponse(json, mimetype="application/json")