title: Django load local json file
body: <p>I have an ajax view:</p>
  
  <pre><code>def ajax_prices(request):
      data = {'data':'data'}
      return HttpResponse(json.dumps(data), mimetype='application/json')
  </code></pre>
  
  <p>I want to test this with a local json file (prices.json). How can I import a local json file?</p>
  
  <p>Local json file 'prices.json'</p>
  
  <pre><code>{"aaData": [
  [1, "70.1700", "2008-12-29 11:23:00"],
  [2, "70.2600", "2008-12-29 16:22:00"],
  [3, "70.6500", "2008-12-30 11:30:00"],
  [4, "70.8700", "2008-12-30 16:10:00"],
  [5, "70.5500", "2009-01-02 11:09:00"],
  [6, "70.6400", "2009-01-02 16:15:00"],
  [7, "70.6500", "2009-01-05 11:17:00"]
  ]}
  </code></pre>
  
  <p>I can't do that with:</p>
  
  <pre><code>data = '/static/prices.json'
  </code></pre>