Please wait...


How to implement WebSocket in Django using Channels and Stream WebSocket data

Django Websocket

WebSocket is a technology that makes the two-way connection between a client browser and a server where a client can send and receive messages from the server without waiting for each other responses. There are many ways to create WebSocket.

WebSocket in different languages/frameworks/libraries …

22 Feb 2021 Django
Call Child method from Parent and Parent method from Child in ReactJS


ReactJs, we worked mostly in Components so today we're implementing component Parent and Child based and calling methods from each other.

For example here, When Calling Child method from Parent Component using a counter state in Child component and that will increase and reset counter state value …

11 Feb 2021 ReactJs
Custom Django data migrations with RunPython Class

In the Django framework, Migration is a very important part for operation on the database.
so today I’m showing you How Django migration can be useful for automatic data upload on creating a table in the database.

Let …

08 Feb 2021 Django
How to GET nested data (POST without nested) in Django REST Framework

DRF Nested Data
In this post, you're going to learn how to get nested data from the Django REST framework.

Django REST Framework uses Serializer class that converts Django queryset to JSON with Python datatypes

But if you define Serializer class with the nested class so …

02 Feb 2021 Django
Save and Get objects using Python pickle module

The pickle module implements a fundamental, but powerful algorithm for serializing and de-serializing a Python object structure.

Pickling - is the process whereby a Python object hierarchy is converted into a byte stream, and

Unpickling - is the inverse operation, whereby a byte stream is converted back into an object hierarchy.

Write …

05 Feb 2018 Python
HTML Parsing using BeautifulSoup4 library of Python

HTML Parsing
TML parsing in Python is very easy to handle and can also fetch data from any website according to requirement.
Beautiful Soup is also is a library that has a great method of HTML, XML parsing and it provides many concepts for filter …

10 Oct 2017 Python
Spark Streaming from text files using pyspark API

Apache Spark is an open source cluster computing framework. It is a powerful engine for process speed, easy to use, higher level libraries, SQL queries, streaming data, Machine learning, and Graph processing.

Spark code API

Today I’ll show a tutorial of spark streaming from text …

20 Sep 2017 Python
How to make charts in django admin interface?

Django Charts

Django admin is a great interface and powerful features for managing data. It shows models that are registered in of apps.

Django admin has full customization for developers and current many libraries available's on GitHub that can change the interface of admin with …

15 Sep 2017 Django