title: Django, Ajax url not found in js file
body: <p>I'm making the website using django, python and javascript.
  I get an error<br>
  <strong>'Not found: /schedule/{% url 'schedule_delete' %}'</strong> when I use the ajax in js file</p>
  
  <p>fullcalendar.js</p>
  
  <pre><code>function eventElementHandlers(event, eventElement) {
      eventElement
          .click(function(ev) {
              var start = event.start; 
              var id = event.id;
              var title = event.title;
  
              var allData = {'csrfmiddlewaretoken': '{{ csrf_token }}', "id":id, "start":start, "title":title};
              $.ajax({
                  url: "{% url 'schedule_delete' %}", 
                  type: "POST",
                  data: allData, 
                  dataType: "json", 
  
                  success: function(response){
                      alert("success!");
                      $('#used_session'+id).html(response.used_session);
  
                  },
                  error:function(error){
                      alert("fail!");
                  }
              });
    }
  </code></pre>
  
  <p>urls.py</p>
  
  <pre><code>from django.conf.urls import url
  from . import views
  
  urlpatterns= [
  url(r'^$', views.home, name='home'),
  url(r'^schedule_delete/$', views.schedule_delete, name='schedule_delete'),
  
  ]
  </code></pre>
  
  <p>I also made schedule_delete in views.py.</p>
  
  <p>Why url is wrong?? The same url format was okay in the other template. Is url foramt different depending on the django template or js file??</p>
  
  <p>Any help will be very helpful to me, thanks!</p>