title: fetch() URL won't get recognized
body: <p>I keep getting error that the <code>get-response</code> in <code>fetch("/get-response/"</code> isn't found</p>
  
  <blockquote>
    <p>POST <a href="http://localhost/get-response/" rel="nofollow noreferrer">http://localhost/get-response/</a> 404 (Not Found)</p>
  </blockquote>
  
  <p>Can you help me figure out why?
  Here is some code</p>
  
  <pre><code>fetch("/get-response/", {  //&lt;---- Not found
                  body: JSON.stringify({'message': message['text']}),
                  cache: 'no-cache', 
                  credentials: 'same-origin', 
                  headers: {
                      'user-agent': 'Mozilla/4.0 MDN Example',
                      'content-type': 'application/json'
                  },
                  method: 'POST',
                  mode: 'cors', 
                  redirect: 'follow',
                  referrer: 'no-referrer',
                  })
  </code></pre>
  
  <p>The <code>get-response</code> is coming from urls.py:</p>
  
  <pre><code>from django.contrib import admin
  from django.conf.urls import include, url
  from django.urls import path
  from MyApp.views import Index, get_response
  from django.conf.urls.static import static
  from django.conf import settings
  
  
  urlpatterns = [
      path('admin/', admin.site.urls),
      url('', Index),
      path('get-response/', get_response),
  ]
  </code></pre>
  
  <p>And the <code>get_response</code> is coming from views.py</p>
  
  <pre><code>@csrf_exempt
  def get_response(request):
      response = {'status': None}
  
      if request.method == 'POST':
          data = json.loads(request.body.decode('utf-8'))
          message = data['message']
  
          chat_response = chatbot.get_response(message).text
          response['message'] = {'text': chat_response, 'user': False, 'chat_bot': True}
          response['status'] = 'ok'
  
      else:
          response['error'] = 'no post data found'
  </code></pre>