[Django]-Django, why is my jquery url view duplicating?

3👍

You need to put place a / at the start of the path to make it relative to the domain root instead of the current directory:

$.ajax({
  method: "GET",
  url: "/myportfolio/add_transaction",
  data: $formData,
});

Leave a comment