Open a web browser and enter http://localhost:8000/
. Replace localhost
with the IP of the computer that is running the Django development server if 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 there is a Log in
hyperlink at the upper-right corner.
Click Log in
and the browser will display the Django REST Framework login page. Enter gaston-hillar
in the username field, enter FG$gI^76q#yA3v
in the password field, and click Log In
. Now, you will be logged in as gaston-hillar
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 (gaston-hillar
) and a drop-down menu that allows you to log out. The following screenshot shows the api-root
after we are...