Posts From Python Modules

Flask Mysql

Flask MySQL – Setting up a Flask and MySQL Database Connection

In this article, we will learn how to set up a Flask MySQL database connection. So let’s get started!! Structured Query Language SQL allows us to access and manipulate databases. In SQL, we can perform various tasks such as: Adding records to databases Creating tables Perform CRUD (Create, Read, Update, Delete) operations SQL is the […]

Flask Context

Flask Context – Demystifying Application and Request Contexts

In this tutorial, we will first introduce Flask Contexts and then further look into the two contexts in Flask – Application Context and Request Context. What is a Flask Context? Flask uses Context to make certain variables globally accessible, on a temporary basis In Flask, you might have noticed that the Flask Views don’t take […]

Flask Flash

Flask flash() method – How to Flash Messages in Flask?

In this tutorial, we will learn how to flash messages using the Flask flash() method. What does it mean to flash a message? It is always good for GUI applications to give feedback to the user for his actions.  That is, for example, in Flask form, if the user leaves a field empty, it is […]

Garbage Collection In Python

Garbage Collection in Python

In this article, I will introduce you to the concept of garbage collection in Python. Garbage collection is a way in which Python manages its memory automatically. It does so with the use of a reference counter. So before we get into the concept of garbage collection, let’s understand what a reference counter is. What […]

Flask WTF

Flask WT Forms

Welcome to this tutorial! Today we will look into a forms library in the Flask web framework known as Flask WT Forms. The need for Flask WT Forms Though the HTML forms are acceptable to use,  they have certain shortcomings: There is no direct link between the client-side HTML form and the server-side Flask application. […]

Flask Static Files

Flask Static Files – Implementation of Static Files in Python Flask

Hola Coders! This article is all about Flask static files and its implementation. So let’s get started! The need for Static Files in Flask You would have observed that almost all the websites consist of photos, Background colors, and many other beautification elements. This aesthetic nature of websites is achieved by using static files, which […]