[Answer]-Django: relative url not working with post calls in ajax

1👍

In Chrome Network section you can preview the error explanation if you have DEBUG=True.

As you have no slash at the end of var relative= "../../line_group/addLine/1", it might be that CommonMiddleware redirects your request. Set APPEND_SLASH = False in project settings if you want to keep your URL as it is.

Leave a comment