Skip to Content
Hands-On RESTful Python Web Services - Second Edition
book

Hands-On RESTful Python Web Services - Second Edition

by Gastón C. Hillar
December 2018
Intermediate to advanced
500 pages
12h 33m
English
Packt Publishing
Content preview from Hands-On RESTful Python Web Services - Second Edition

Making HTTP requests to the Django API

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:03
    Django 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. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building RESTful Python Web Services

Building RESTful Python Web Services

Gastón C. Hillar
Python Command Line Tools

Python Command Line Tools

Alfredo Deza, Noah Gift

Publisher Resources

ISBN: 9781789532227Supplemental Content