Now we can launch Django's development server to compose and send HTTP requests to our unsecure web API (we will definitely add security later). Execute the following command:
python manage.py runserver
The following lines show the output after we execute the previous command. The development server is listening at port 8000
.
Performing system checks...System check identified no issues (0 silenced).October 24, 2018 - 19:58:03Django version 2.1.2, using settings 'games_service.settings'Starting development server at http://127.0.0.1:8000/Quit the server with CONTROL-C.
With the previous command, we will start Django development server and we will only be able to access it in our development computer. The previous command starts the development server in the default IP address, that is, 127.0.0.1
(localhost). It is not possible to access this IP address from other computers or devices connected to our LAN. Thus, if we want to make HTTP requests to our API...