Open a web browser and enter http://localhost:8000/
. Replace localhost by the IP of the computer that is running the Django development server in case you use another computer or device to run the browser. The browsable API will compose and send a GET
request to /
and will display the results of its execution, that is, the Api Root. You will notice that there is a Log in hyperlink in the upper-right corner.
Click Log in and the browser will display the Django REST Framework login page. Enter kevin
in username, kevinpassword
in password, and click Log In. Remember to replace kevin
with the name you used for the user and kevinpassword
with the password you configured for this user. Now, you will be logged in as kevin
and all the requests you compose and send through the browsable API will use this user. You will be redirected again to the Api Root and you will notice the Log In hyperlink is replaced with the username (kevin) and a drop-down menu...