title: Importing JSON data into Django View/Template
body: <p>So im working on a project and im using json data from a graphite graph and im trying to import it into the django views.py file and then get the value I want in the template. The import will be happening from a remote URL not from directly on the server itself. </p>
  
  <p>here is my json:</p>
  
  <pre><code>[{"target": "stocks.shared (last: 4204.0)", "datapoints": [[4379.0, 1389225600], [4204.0, 1389312000]]}]
  </code></pre>
  
  <p>This is what my views file will look like</p>
  
  <pre><code>def get_context_data(self, **kwargs):
      context = super(IndexView, self).get_context_data(**kwargs)
      context['stocks'] = JSON PULL
      return context
  </code></pre>
  
  <p>I tried this and It did not work mostly because json open is not meant to pull externally.</p>
  
  <pre><code>json_data=open('URL')
  context['shared'] = json.load(json_data)
  </code></pre>