Programming

Python Programming
Python Programming

Frameworks

Django Framework
Django Framework
Django REST Framework
Django REST Framework

Latest Blog Articles

docker compose for django

docker compose for django
Docker compose is used to deploy multiple services in the containers like Django application, PostgreSQL database and Running Django Migrations to create table in the database.

Read more

golang struct convert unix timestamp to date string

golang struct convert unix timestamp to date string
Let's quickly check how we can convert unix timestamp to date string in a Go language. You may already used the unix timestamp, but let's quickly go through what is a unix timestamp ? the Unix timestamp is a way to track time as a running total of seconds. This count starts at the Unix Epoch on January 1st, 1970 at UTC.

Read more

django model CRUD operations

django model CRUD operations
Let's do CRUD operations on django model. Let's write basic queries like insert, update and delete queries using django ORM.

Read more

running flask app inside docker

running flask app inside docker
Docker is container platform is used by hundreds of develops and system admins to build, share and run applications. Let's get started with docker and running a simple flask application using the docker.

Read more

django create table from model

django create table from model
Django made creating the tables in the database very simple with its built-in ORM. To create table in the database with django is to create a django model with all required fields and then create migrations and apply them. Let's jump-in learn how to create database table with django model.

Read more

django database connectivity

django database connectivity
Django supports various relational databases like SQLite, mySQL, PostgreSQL, Oracle. Django is completely designed for Relational Databases so it does not support non-relational databases like mongoDB directly

Read more

django template using if...elif...else

django template using if...elif...else
We can use if...elif..else conditionals in django template. The only difference between python code and django template code is it's syntax. It's similar to python code.

Read more

Django template for loop

Django template for loop
Django provides a template tag "for" to provide the for loop functionality in django templates. By using the for loop template tag we can iterate over lists, tuples, dict's just like we do in python programs.

Read more

django pass data from view to template

django pass data from view to template
As we know django is a MVC framework. So, we seperate business logic from presentational logic. We write business logic in views and we pass data to templates to present the data.

Read more

renderers in Django Rest Framework

renderers in Django Rest Framework
Renderers are used to serialize the response into a specific media type like JSON, XML, YAML, etc. Django REST Framework provides various built-in renderer classes and it also supports to write a custom renderer. We specify renderers as an iterable type (i.e tuple, list, set, etc.). It means we can use multiple renderers for a single view/viewset.

Read more

parsers in Django Rest Framework

parsers in Django Rest Framework
Parsers in Django REST are used to parse the content of incoming HTTP request. In HTTP request we recieve the data as a string format. Parsers will parse the HTTP contetns in to python data types based on the Content-Type header recieved in the HTTP request. Django REST Framework provides a number of built-in parsers which parses different types of

Read more

mysql basics in ubuntu

mysql basics in ubuntu
MySQL is a opensource database software it helps users to store, organise and retrieve data. To manage the MySQL database we can install MySQL Workbench software. Let's see installation process of MySQL

Read more

routers in Django Rest Framework

routers in Django Rest Framework
Routers are used with ViewSets in django rest framework to auto config the urls. Routers provides a simple, quick and consistent way of wiring ViewSet logic to a set of URLs. Router automatically maps the incoming request to proper viewset action based on the request method type(i.e GET, POST, etc). Let's start using routers. Working with DRF Route

Read more

django send email using mailgun api

django send email using mailgun api
We can send email in django using mailgun api. Mailgun is one of the trusted email service providers. When we send email using the mailgun it can directly deiver it to the recipient. As it is a trusted email service provider our email cannot be spammed. So, our information can be reached to the end user. By using mailgun we can send upto 10,000 ema

Read more

viewsets in Django Rest Framework

viewsets in Django Rest Framework
ViewSets are one of the super cool features of Django REST Framework. ViewSets are just a type of class based view but it do not provide request method handlers like "get()", "post()", "patch()", "delete()", etc. But, it provides actions such as "create()", "list()", "retrieve()", "update()", "partial_update()" and "destroy()". DRF allows us to com

Read more

Read More Blog Posts