O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building RESTful Python Web Services with Django

Video Description

Create lightweight, maintainable, scalable, and secure web apps using the best tools and techniques

About This Video

  • Develop RESTful Web Services using the Django framework in Python

  • Configure and fine-tune your APIs using the best tools and techniques available

  • This practical guide will help you implement complete REST-based APIs from scratch

  • In Detail

    Python is the language of choice for millions of developers worldwide, due to its gentle learning curve and its vast applications in day-to-day programming. It builds great and reliable web services in the RESTful architecture. This video will show you the best tools you can use to build your own Python web services.

    You’ll start by learning how to develop RESTful APIs using the Django framework combined with related libraries and tools. We’ll delve into the Django framework to build various web services. We’ll show you everything you need to successfully develop RESTful APIs with the Django framework such as request handling, URL mapping, serialization, validation, authentication, authorization, and databases.

    By the end of the video, you’ll have a deep understanding of the stacks needed to build RESTful web services.

    Table of Contents

    1. Chapter 1 : Developing RESTful APIs with Django
      1. The Course Overview 00:03:16
      2. Designing a RESTful API to Interact with a Simple SQLite Database 00:04:03
      3. Working with Lightweight Virtual Environments 00:03:27
      4. Setting Up the Virtual Environment with Django REST Framework 00:03:17
      5. Creating the Models 00:05:34
      6. Managing Serialization and Deserialization 00:08:05
    2. Chapter 2 : Creating Django Views
      1. Defining API Views 00:11:07
      2. Making HTTP Requests to the API 00:10:03
      3. Working with GUI Tools – Postman and Others 00:07:17
    3. Chapter 3 : Working with Class-Based Views in Django
      1. Using Model Serializers to Eliminate Duplicate Code 00:01:56
      2. Working with Wrappers to Define API Views 00:04:16
      3. Using the Default Parsing and Rendering Options 00:07:38
      4. Browsing the API 00:04:02
      5. Understanding the Tasks Performed by Each HTTP Method 00:04:46
    4. Chapter 4 : Working with Hyperlinked APIs in Django
      1. Declaring Relationships with the Models 00:09:01
      2. Managing Serialization and Deserialization with Hyperlinks 00:08:42
      3. Creating Class-Based Views and Using Generic Classes 00:02:11
      4. Working with Endpoints for the API 00:03:44
      5. Creating and Retrieving Related Resources 00:04:50
    5. Chapter 5 : Improving Authentication to an API with Django
      1. Adding Unique Constraints to the Models 00:03:53
      2. Taking Advantage of Pagination 00:07:20
      3. Customizing Pagination Classes 00:03:57
    6. Chapter 6 : Adding Authentication to an API with Django
      1. Understanding Authentication, Permission, and Throttling 00:03:23
      2. Adding Security-Related Data to the Models 00:04:39
      3. Creating a Customized Permission Class for Object-Level Permissions 00:04:20
      4. Configuring Permission Policies 00:03:57
      5. Composing Requests with the Necessary Authentication 00:02:46
      6. Browsing the API with Authentication Credentials 00:03:13
    7. Chapter 7 : Additional Features of Django and Django REST Framework
      1. Configuring Throttling Policies 00:03:28
      2. Testing Throttling Policies 00:02:00
      3. Understanding Filtering, Searching, and Ordering Classes 00:02:07
      4. Configuring Filtering, Searching, and Ordering for Views 00:05:06
      5. Testing Filtering, Searching, and Ordering 00:02:15
    8. Chapter 8 : Defining and Executing Unit Tests
      1. Setting Up Unit Tests 00:02:31
      2. Defining a First Round of Unit Tests 00:03:49
      3. Running Unit Tests and Checking Testing Coverage 00:02:35
      4. Improving Testing Coverage 00:03:44