Blob Versioning, Blob Snapshots, and Soft Delete in Azure Blob Storage
Dynamically Modifying Fields Once a serializer has been initialized, the dictionary of fields that are set on the serializer may be accessed using the .fiel...
Hash Table It is a data structure where data is stored in key-value pairs. It uses a hash function to map data of arbitrary size to a fixed size and an arra...
Dummy serializer is the serializer used in viewset having no actual implementation or use case.
We often want to make a copy of the populated database and connect it to our backend project. The cases generally occur when an old team member does not hav...
Dependencies We will need two python libraries. Boto3 django-storages
We can use @action decorator to add extra actions which can work for single object or an entire collection. In order to indicate the intend, we need to set ...
Class methods It is a method bound to class rather than its object and is shared among all objects. It receives class as a implicit first argument and can ...
As someone who wants to make a career in Information Technology, these questions might be troubling you. When we search “Software Engineering” on the web, w...
Setup the Rest API Project
Database Configuration in PostgresSQL
I always had in the back of my mind, how to become a software engineer, how to write programs, how can one land such jobs. Am I qualified enough? What root ...
Often we will want our serializer to map closely to Django model definition. In such cases, the rest framework provides a ModelSerializer class which helps ...
Serializer in Django Rest Framework converts complex objects into data types understandable by front-end frameworks. It allows the python native data types ...
Model viewset comes with default action create(), retrieve(), update(), partial_update(), destroy() and list(). All these action are the result of multiple ...
The mixin classes provide the actions that are used to provide the basic view behavior. Note that the mixin classes provide action methods rather than defin...
Generic views are designed as a shortcut for common usage patterns.The common patterns used while building views is abstracted so that we can build our comm...
Instead of writing our API function based, we can write our API class based. The advantage it brings is a powerful pattern which allows us to reuse the comm...
Rest framework provides simple set of decorators for regular Django function to wrap around, allowing function to receive the instance of Request (rather th...
We have already created a materialized view and used it to retrieve data in previous blogs. But the problem with materialized view is that, it does not get ...
Django is a Python-based web framework that supports model-template-view design principles. It is free, open-source, and high-level. This framework promotes...
A “materialized view” is a database object which stores the result of a precalculated database query and makes it easy to refresh this result as needed.(cyb...
Validation in REST framework is entirely performed on serializer class. There are no any hidden behavior on model instance. All of the validation rule can b...
Prerequisites Required
Before connecting, lets start with what is nodemcu? NodeMCU is an open source LUA based firmware developed for ESP8266 wifi chip.It has 4MB of flash memory ...