title: JSONDecodeError Expecting value: line 1 column 1 (char 0) in Django
body: <p>I'm new to django and trying to connect django with docker.
  <br>
  I'm trying to call docker compase from my django app using url. But I am receiving JSONDecodeError. I think my error is occured from these lines <code>response = requests.get(url)</code> <code>output = response.json()</code>.
  <br>
  I'm having so much trouble about this issue.</p>
  <p>How can I solve this error?  Please, help.</p>
  <p><strong>views.py</strong></p>
  <pre><code>def sentiment(request):
      output = {}
      if 'input' in request.GET:
          input = request.GET['input']
          url = 'http://localhost:5000/sentiment/%s' % input
          response = requests.get(url)
          output = response.json()
      return render(request, 'blog/links/Link1.html', {'output': output})
  </code></pre>
  <p><strong>Link1.html</strong></p>
  <pre><code>&lt;form class=&quot;text&quot; method=&quot;get&quot; action=&quot;{% url 'da_sonuc'%}&quot;&gt;
     &lt;label for=&quot;textarea&quot;&gt; 
      &lt;i class=&quot;fas fa-pencil-alt prefix&quot;&gt;&lt;/i&gt; Duygu Analizi 
    &lt;/label&gt; 
       &lt;h2&gt;Test with your own text...&lt;/h2&gt;
     &lt;input class=&quot;input&quot; type=&quot;text&quot; name=&quot;input&quot;&gt;
      &lt;br&gt;
     &lt;button type=&quot;submit&quot; class=&quot;btn&quot; name=&quot;submit&quot; &gt;Try!&lt;/button&gt;
  &lt;/form&gt;  
   &lt;label &gt; Result &lt;/label&gt;
     &lt;div class=&quot;outcome&quot;&gt; 
    {% if output %}
      &lt;p&gt;&lt;strong&gt;{{ output.text }}&lt;/strong&gt;&lt;/p&gt;
    {% endif %}
    &lt;/div&gt;
  </code></pre>
  <p><strong>Error:</strong></p>
  <pre><code> JSONDecodeError Expecting value: line 1 column 1 (char 0)
  </code></pre>