Skip to content

Tag Archives: Django-REST

In this article, we will discuss how to customize Object Level Permissions in Django REST Framework. To customize permission classes in Django REST Framework, we… Read More
There are many different scenarios to consider when it comes to access control. Allowing unauthorized access to risky operations or restricted areas results in a… Read More
Authentication is a mechanism that provides access control based on the credentials associated with incoming requests. Django REST Framework provides several authentication schemes. In this… Read More
Prerequisite: Adding Filtering in APIs – Django REST Framework [lin needed article on published yet] Django filters facilitate filtering the queryset to retrieve the relevant… Read More
Django REST Framework’s generic list view, by default, returns the entire query sets for a model manager. For real-world applications, it is necessary to filter… Read More
In this article, we will create class-based views and combine this with the serializer class to return JSON representation for each HTTP request. For our… Read More
In this chapter, we will create Django API views for HTTP requests and will discuss how Django and Django REST framework process each HTTP request. … Read More
Imagine you have huge amount of details in your database. Do you think that it is wise to retrieve all at once while making an… Read More
The browsable API feature in the Django REST framework generates HTML output for different resources. It facilitates interaction with RESTful web service through any web… Read More
Prerequisite – https://www.geeksforgeeks.org/how-to-create-an-app-in-django/ Writing documentation can be pretty daunting for developers and to be honest, nobody likes writing long explanations, I personally don’t but as… Read More
Class-based views help in composing reusable bits of behavior. Django REST Framework provides several pre-built views that allow us to reuse common functionality and keep… Read More
Serialization is one of the most important concepts in RESTful Webservices.  It facilitates the conversion of complex data (such as model instances) to native Python… Read More
Django REST Framework allows us to work with regular Django views. It facilitates processing the HTTP requests and providing appropriate HTTP responses. In this section,… Read More
Every new Django project should use a custom user model. The official Django documentation says it is “highly recommended” but I’ll go a step further and say… Read More
Serializers in Django REST Framework are responsible for converting objects into data types understandable by javascript and front-end frameworks. Serializers also provide deserialization, allowing parsed… Read More