The `r'^api-token-auth/'` part of pattern can actually be whatever URL you want to use.
Note that the URL part of the pattern can be whatever you want to use.
The `obtain_auth_token` view will render a JSON response when a valid `username` and `password` fields are POST'ed to the view using form data or JSON:
The `obtain_auth_token` view will return a JSON response when valid `username` and `password` fields are POSTed to the view using form data or JSON: