3. DRF Serialization

Serializer and Model Serializer

Serialization

Serializers allow complex data such as querysets and model instances to be converted to native Python datatypes that can then be easily rendered into JSON, XML or other content types.

Serializers also provide deserialization, allowing parsed data to be converted back into complex types, after first validating the incoming data.

[Read More]

2. Rest Framework

Django Rest Framework

REST API

REpresentational State Transfer API (Application Programming Interface)

Its an architectural style for providing standards between computer systems on the web, making it easier for systems to communicate with each other.

  • It provides a set of principles/rules for building web services that used HTTP as a communication protocol.
  • An API that follows REST standard are called as RESTful API
  • GET, POST, PATCH, PUT and DELETE
[Read More]

1. API and it's types

SOAP, RPC, Websocket, REST

1. API

API stands for Application Programming Interface. It’s a software interface that allows two or more applications to interact with each other without any user intervention.

It offers products or services to communicate with other products and services without having to know how they’re implemented.

Protocols that can be used in APIs are TCP, SMTP, HTTP

[Read More]

01-Django ORM Introduction

Django ORM Introduction

1. Django ORM

The Django web framework includes a default object-relational mapping layer (ORM) that can be used to interact with various relational databases such as SQLite, PostgreSQL, and MySQL. It allows us to add, delete, modify, and query objects.

An object-relational mapper provides an object-oriented layer between relational databases and object-oriented programming languages without having to write SQL queries.

[Read More]

08-Django Basic

Django Signal and its types

Django Signal

  • The Django Signals is a strategy to allow decoupled applications to get notified when certain events occur.
  • There are two key elements in the signals machinery –> the senders and the receivers
  • As the name suggests, the sender is the one responsible to dispatch a signal,
  • And the receiver is the one who will receive this signal and then do something.
[Read More]