title: Can't Get AJAX to django
body: <p>My HTML is like this:</p>
  
  <pre><code>$.ajax({
      type: "GET",
      url:"/ajax/validate_supplier/",
      data:{
          'supplier_name': supplier_name
      },
      dataType: 'json'
  });
  </code></pre>
  
  <p>My django url is this one:</p>
  
  <pre><code>   path('ajax/validate_supplier/', views.validate_supplier, name='validate_supplier'),
  </code></pre>
  
  <p>And my view is this:</p>
  
  <pre><code>def validate_supplier(request):
      supplier_name= request.GET.get('supplier_name',none)
      data={
          'name_is': supplier_name
      }
      return JsonResponse(data)
  </code></pre>
  
  <p>This simple ajax get is not working for me, what am I doing wrong? </p>
  
  <p>I'm getting 404 Not found error</p>