In this tutorial I will show you how to dockerize Django MySQL app using docker compose in Linux environment. So why do you need docker compose when you have docker container? Generally it is said to be best practices when each docker container runs a process with single responsibility, but for this application you need…

Posted in Django Docker MySQL

Docker Compose – Dockerizing Django MySQL App

Introduction It is considered to be a best practice for a container to have only one process with single responsibility. But as I am going to dockerize Python based Flask web app and MySQL server for storing data for the app, so I need two containers – one for running the app and another one…

Posted in Docker Flask MySQL Python

Docker Compose – Dockerizing Flask MySQL App

Introduction In this tutorial I am going to show you how to create a simple Python Flask REST API in Linux based CentOS 7 system. Then I am going to show you how to build, package and run this Python Flask application with Docker. Here I am creating an endpoint that returns Hello, World! in…

Posted in Docker Flask Python

How to Create, Build, Package and Run Python Flask Application with Docker

Here I am going to tell you how to convert CSV to PDF file using PyFPDF library in Java programming language. CSV is a comma separated value and it can be opened as a plain text file or in Microsoft excel file. There are few advantages of CSV data: CSV format is considered to be…

Posted in Python

How to convert CSV File to PDF File using PyFPDF in Python

In this tutorial I will show you how to blur an image using Python pillow library. The pillow image library provides the ImageFilter module that contains definitions for a pre-defined set of filters, which can be be used with the Image.filter() method to apply blur on image. I am going to show you three blur…

Posted in Python

Python Blur Image Pillow

Introduction Here in this tutorial I am going to show you how to resize bulk images using Python’s PIL library. The bulk or multiple images which will be resized are kept into a folder. All the image files will be read one by one will be resized to a particular width x height. You can…

Posted in Python

How to resize bulk images using Python

Here in this tutorial I am going to show you how to use Swagger API with Django REST framework. Swagger API provides well structured documentation for REST API endpoints so a new person can say how to test a REST API without knowing its internal implementation. Essentially, Swagger does a simple but very powerful thing:…

Posted in Django Swagger

How to use Swagger with Python based Django REST APIs

Introduction In this tutorial I am going to show you how to build CRUD operations on REST APIs using Python based Django framework and MySQL as a persistent repository. CRUD is an acronym that basically means Create Read Update Delete. So we are going to create new resource, update existing resource, delete existing resource and…

Posted in Django

Python Django MySQL REST API CRUD Example

Introduction Here in this tutorial I am going to show you how to setup Python based Django framework and MySQL database server to execute SQL statement in Windows environment. The MySQL server is used as a persistent system for storing data for the application. I have already discussed in my another tutorial how to setup…

Posted in Django

How to setup Python based Django framework and MySQL Databse to execute SQL statements

Introduction In this example I am going to show you how to configure Python based Django in Windows Operating System. The current version of Django, at the time of writing, I am using here is 3.0.8. Here I am going to show you how to install latest version of Django in Windows 64 bit Operating…

Posted in Django

How to setup Python based Django framework in Windows

Introduction Autocomplete is a feature in which an application predicts the rest of a word a user is typing. In graphical user interfaces, users can typically press the tab key to accept a suggestion or the down arrow key to accept one of several. Autocomplete speeds up human-computer interactions when it correctly predicts the word…

Posted in Flask Python

Autocomplete Input Suggestion using Python and Flask

Introduction Here I am going to show you how to upload multiple images and display them one by one once images get uploaded using Python programming language. I am using here Flask as a web based framework on top of Python language. On the UI (User Interface) there is an input field which is used…

Posted in File Upload Flask Python

Upload and Display Multiple Images using Python and Flask