title: Render JSON response using Django's render()
body: <p>I am working my way through Django's tutorial but failing to display an API response using Django's render() function.</p>
  
  <p><strong>models.py</strong></p>
  
  <pre><code>...
  class MF_Version():
      def get_MF_Version(self):
          url = 'https://www.mediafire.com/api/1.5/system/get_version.php?response_format=json'
          r = requests.get(url)
          return r
  ...
  </code></pre>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>...
  def view_Version(request):
      hr = HttpResponse(MF_Version().get_MF_Version())
      return render(request, 'mediafire/version.html', {'hr': hr})
      # return hr
  ...
  </code></pre>
  
  <p><strong>version.html</strong></p>
  
  <pre><code>{% if 1 %}
      {{ hr }}
  {% endif %}
  </code></pre>
  
  <p><strong>Browser output:</strong></p>
  
  <pre><code>&amp;lt;HttpResponse status_code=200, &amp;quot;text/html; charset=utf-8&amp;quot;&amp;gt;
  </code></pre>
  
  <p><strong>MefiaFire response:</strong></p>
  
  <pre><code>{"response":{"action":"system\/get_version","current_api_version":"1.5","result":"Success"}}
  </code></pre>
  
  <p>If I comment out <code>return render(...)</code> in the view.py file and replace it with <code>return hr</code>, I do see the JSON response from MediaFire, but I cannot figure out how to access <code>action</code>, <code>current_api_version</code> and <code>result</code> in the HTML template.</p>
  
  <p>Any help is appreciated. </p>