I am newbie to django and using it as back end for an application that creates users. In front end the code for posting the user name is :
var xobj = new XM
In my case, I had simply forgotten to add a trailing slash at the end of the REST API URL. ie, I had this:
http://127.0.0.1:8000/rest-auth/login
Instead of this:
http://127.0.0.1:8000/rest-auth/login/