title: Ajax call is not going to view function django
body: <p>Hi I am sending request to a django view but its not accessing  view function . Both are in same app . And I am using debugging tool so I tried to debug but on my view no call is received and 
  My ajax call code is like this</p>
  
  <pre><code>$.ajax({
      url: '/edit_profile/',
      type: 'get', // This is the default though, you don't actually need to always mention it
      success: function(data) {
          alert(data);
      },
      failure: function(data) { 
          alert('Got an error dude');
      }
  });
  </code></pre>
  
  <p><strong>url.py</strong></p>
  
  <pre><code>path('edit_profile/', views.edit_profile , name="edit_profile"),
  </code></pre>
  
  <p><strong>view.py</strong></p>
  
  <pre><code>def edit_profile(request):
         print(request)   
         print(request)     
      if request.method == 'POST':
         return render(request, 'authenticate/edit_profile.html', context)
  </code></pre>
  
  <p>I am debugging but call is not received in this view function .</p>