[Django]-Django does not render after POST request

4👍

Basically you are using the ajax call from jQuery. Django return the response in json/string format. Inside the success method you will have to make changes to reflect it in the HTML pages.

 $.ajax({
      type: "GET",
      url: '/productionFloor/wip/',
      data:"{'csrfmiddlewaretoken': $("[name=csrfmiddlewaretoken]").val(),
                        'id': id, 'process': process}",
      success: function(response) {
         // inside this function you have to bind html content using javascript, because ajax call will not render complete page.
    });

Leave a comment