Posts by Year

2025

Back to top ↑

2024

Back to top ↑

2023

Back to top ↑

2022

Hash Table

1 minute read

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...

Dump and Restore the PostgreSQL Database

1 minute read

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...

Extra Actions For Routing

1 minute read

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 ...

Python OOP classmethods and staticmethods

4 minute read

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 ...

My journey to becoming a Software Engineer

2 minute read

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 ...

Model Serializer - Django Rest framework

less than 1 minute read

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 - Django Rest Framework

2 minute read

Serializer in Django Rest Framework converts complex objects into data types understandable by front-end frameworks. It allows the python native data types ...

ModelViewSet Django Rest Framework

2 minute read

Model viewset comes with default action create(), retrieve(), update(), partial_update(), destroy() and list(). All these action are the result of multiple ...

Django Rest Framework Mixins

2 minute read

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-Django Rest Framework

3 minute read

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...

Django Rest Framework Class Based Views

2 minute read

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...

Django Rest Framework Function Based Views

3 minute read

Rest framework provides simple set of decorators for regular Django function to wrap around, allowing function to receive the instance of Request (rather th...

Refresh Materialized View With Django Q

3 minute read

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 ...

How To Use PostgresSQL With Django

1 minute read

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...

Materialized View in Django

2 minute read

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...

Django REST Framework Validators

3 minute read

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...

Back to top ↑

2020

Connecting NodeMCU with Firebase

2 minute read

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 ...

Back to top ↑