Book Image

Building RESTful Python Web Services with Django [Video]

By : Gaston C. Hillar
Book Image

Building RESTful Python Web Services with Django [Video]

By: Gaston C. Hillar

Overview of this book

<p>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. </p><p> </p><p>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. </p><p> </p><p>By the end of the video, you’ll have a deep understanding of the stacks needed to build RESTful web services. </p><p> </p><p>The code bundle for this course is available at https://github.com/PacktPublishing/Building-RESTful-Python-Web-Services-with-Django/</p>
Table of Contents (8 chapters)
Chapter 6
Adding Authentication to an API with Django
Content Locked
Section 3
Creating a Customized Permission Class for Object-Level Permissions
We will use the new permission class to ensure that only the game owners can make changes to an existing game. We will combine the first permission class with the second permission class that only allows read-only access to resources when the request is not authenticated as a user. - Create a new Python named permission.py - Navigate user-related views - Define root URL configuration