Python Programming Articles

#python

Mon 20 October 2025

Making Django Forms Crispy With Bootstrap 5

Django forms are a powerful feature of the Django Web Framework. It utilizes Python code to create and manipulate HTML forms. In this article, we look at how to implement a django form and customize it with Bootstrap 5 CSS framework. When we create a form in django, by convention …
Read more →
Thu 09 October 2025

Decorators in Python

A decorator is a function that modifies the output of the function it is applied to. In Python, you deploy a decorator using the @ symbol followed by the decorator name. @decorator_name def func_name: ... The above code is the syntax for deploying a decorator in Python. Decorators make it easy to …
Read more →
Tue 07 October 2025

Uploading Files In Flask Web Framework

Flask is a lightweight web framework that helps you build web apps easily. In this article, we’ll make a simple Flask app that lets you upload files to the server Start by creating a new folder. Then, inside that folder, create and activate a virtual environment. mkdir flask_app && cd …
Read more →
Tue 17 January 2023

Configure Django And MySQL Database

In this post, I will show you how to set up Django with MySQL database. This tutorial assumes you already have MySQL installed on your computer. Django comes with a default SQLite database that does not require any setup. SQLite databases are not good for large scale applications therefore, it …
Read more →
Mon 16 January 2023

Recursion In Python

Recursion is a programming strategy used for breaking complex computation problems into small sub-problems that can be solved. The recursion problem is self-referential. The strategy is deployed when a function makes copies of itself to solve sub-problems of a computation. Every recursive function has a base case that allows the …
Read more →
Tue 20 December 2022

Setup Windows 11 for Python Development

Python is an interpreted, general purpose, high level programming language. It is a popular language for data science, web development etc. It has an easy to understand syntax that makes it an excellent choice for beginner programmers. In this tutorial, we'll learn how to setup python on a windows 11 …
Read more →