© 2023 Hashnode
#djangorestframework
This is part 2 of the series create and use custom signals in Django. In this article, you will do some updates on the previously written code in the previous article and learn how to wrap the signal in middleware for it to be automatically…
1.Install Django To install Django, you can follow the below steps: Make sure you have Python installed on your system. You can download the latest version of Python from the official website: https…
UpDRF is a library which allows you to build APIs in your Django project. How to install Django Run,pip install Django Starting a new project Django-admin startproject drf Installing Django rest Framework Pip install Django Rest Framework C…
This post explains step-by-step how to create a custom User model in Django. Objectives By the end of this article, you should be able to: Describe the difference between AbstractUser and AbstractBas…
Middleware is a framework of hooks into Django's request/response processing. It is a light plugin system for altering Django’s input or output. Each middleware component is responsible for doing some…
The problem with ChoiceField In Django REST Framework, there is a field called ChoiceField which can be used when you have certain choices for a field in your REST API. For example, let's imagine you were creating an API to convert colors t…
As a popular Python web framework, Django is known for its simplicity and ease of use. However, as with any web framework, performance can be an issue. In this article, we will explore some tips and t…
In this article, you will learn how to create and use custom Django signals. Then use them to log all actions undertaken by a user on the application 1. What are Django signals? According to the Djang…
Here's what are going to build: API docs PlanetScale PlanetScale builds a database-as-a-service offering on Vitess, an open source sharding middleware system for MySQL powering products such as YouTub…
Objectives Introduce Amazon SQS and Queues. Look into the different types of queues and their differences. Understand how Amazon SQS would be used in a decoupled application or service. Build a simpl…