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

Creating and retrieving related resources

Now, we will use the flask script to launch Flask's development server and our RESTful API. We want to enable the debug mode and, therefore, we will set the value for the FLASK_ENV environment variable to development.

Run the following command in the Terminal in Linux or macOS with a bash shell:

    export FLASK_ENV=development

In Windows, if you are using the Command Prompt, run the following command:

    set FLASK_ENV=development

In Windows, if you are using Windows PowerShell, run the following command:

    $env:FLASK_ENV = "development"

Now, run the flask script that launches Flask's development server and the application.

Now that the FLASK_ENV environment variable is configured to work in development ...

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